Lines Matching defs:message
33 // message comparisons. This should only be an issue when process.stdout
48 // Throw message if the message is instanceof Error.
89 message: 'Expected "actual" to be strictly unequal to: 2',
97 message: 'Expected "actual" to be strictly unequal to:\n\n' +
106 message: '1 != 1',
119 assert.throws(() => thrower(a.AssertionError), a.AssertionError, 'message');
136 message: 'The error is expected to be an instance of "AssertionError". ' +
137 'Received "TypeError"\n\nError message:\n\n[object Object]'
167 () => a.doesNotThrow(() => thrower(Error), 'user message'),
172 message: 'Got unwanted exception: user message\n' +
173 'Actual message: "[object Object]"'
181 message: 'Got unwanted exception.\nActual message: "[object Object]"'
186 () => a.doesNotThrow(() => thrower(Error), /\[[a-z]{6}\s[A-z]{6}\]/g, 'user message'),
191 message: 'Got unwanted exception: user message\n' +
192 'Actual message: "[object Object]"'
212 // Use a RegExp to validate the error message.
226 message: 'The input did not match the regular expression /abc/. ' +
257 err.message,
259 'Received "AnotherErrorType"\n\nError message:\n\nfoo'
274 message: 'Missing expected exception.',
284 message: 'Missing expected exception (TypeError).',
293 message: 'Missing expected exception: fhqwhgads',
302 message: 'Missing expected exception (TypeError): fhqwhgads',
326 message: msg || strictEqualMessageStart +
367 message: `${strictEqualMessageStart}\n1 !== 2\n`,
375 message: 'oh no',
402 assert.ok(e.message.includes(rangeError.message));
417 message: 'The "fn" argument must be of type function.' +
453 assert.strictEqual(err.message,
468 assert.strictEqual(err.message.split('\n').length, 19);
487 message: 'The "options" argument must be of type object.' +
498 message: 'Expected "actual" to be reference-equal to "expected":\n' +
529 message: 'No value argument passed to `assert.ok()`',
537 message: 'No value argument passed to `assert.ok()`',
554 message: 'The expression evaluated to a falsy value:\n\n ' +
561 let message = [
579 { message });
581 message = [
601 { message });
603 message = [
622 { message });
624 message = [
643 { message });
645 message = [
658 { message });
660 message = [
672 { message });
674 message = `${start}\n` +
684 { message });
691 message: `${start}\n` +
705 message: 'Expected "actual" not to be strictly deep-equal to:\n\n' +
710 message = 'Expected "actual" not to be strictly deep-equal to:' +
715 { message });
725 message: 'The expression evaluated to a falsy value:\n\n ' +
732 // before the assertion causes any wrong assertion message.
744 message: 'The expression evaluated to a falsy value:\n\n ' +
753 // before the assertion causes any wrong assertion message.
762 message: 'The expression evaluated to a falsy value:\n\n ' +
769 // before the assertion causes any wrong assertion message.
780 message: 'The expression evaluated to a falsy value:\n\n ' +
790 message: 'The expression evaluated to a falsy value:\n\n ' +
801 message: 'Symbol(foo)'
820 message: 'The expression evaluated to a falsy value:\n\n ' +
829 message: 'The expression evaluated to a falsy value:\n\n ' +
849 message: 'The expression evaluated to a falsy value:\n\n' +
873 message: 'The expression evaluated to a falsy value:\n\n' +
894 message: 'The expression evaluated to a falsy value:\n\n' +
911 message: 'The expression evaluated to a falsy value:\n\n ' +
924 message: 'The expression evaluated to a falsy value:\n\n ' +
935 message: 'The expression evaluated to a falsy value:\n\n ' +
948 message: 'The expression evaluated to a falsy value:\n\n fn(value)\n'
957 message: 'The expression evaluated to a falsy value:\n\n ' +
968 message: 'test',
979 message: 'false == true'
986 message: 'false == true'
991 () => assert.throws(() => {}, 'Error message', 'message'),
995 message: 'The "error" argument must be of type function or ' +
997 "('Error message')"
1010 message: 'The "error" argument must be of type function or ' +
1022 message: 'The expression evaluated to a falsy value:\n\n' +
1033 message: 'Wrong value'
1048 message: `${start}\n${actExp}\n\n` +
1052 " message: 'Wrong value',\n" +
1065 message: `${start}\n${actExp}\n\n` +
1070 " message: 'Wrong value',\n" +
1081 message: 'foobar'
1090 message: 'The "expected" argument must be of type function or an ' +
1101 message: `${start}\n${actExp}\n\n` +
1103 " message: 'e',\n" +
1115 message: `${start}\n${actExp}\n\n` +
1117 "+ message: 'foo',\n" +
1118 "- message: '',\n" +
1132 message: 'Got unwanted exception.\nActual message: "undefined"'
1140 message: "The argument 'error' may not be an empty object. Received {}",
1153 message: 'The "error/message" argument is ambiguous. ' +
1154 'The error "foo" is identical to the message.'
1165 message: 'The "error/message" argument is ambiguous. ' +
1166 'The error message "foo" is identical to the message.'
1178 message: 'Values have same structure but are not reference-equal:\n\n[]\n'
1187 message: 'Expected "actual" to be reference-equal to "expected":\n' +
1197 message: /foo/,
1206 message: /fooa/,
1211 message: `${start}\n${actExp}\n\n` +
1213 "+ message: 'foobar',\n" +
1214 '- message: /fooa/,\n' +
1222 const expected = { message: 'foo' };
1233 message: `${start}\n${actExp}\n\n` +
1236 "- message: 'foo'\n" +
1242 const message = 'message';
1246 { message: 'foobar' },
1247 message
1251 message,
1264 message: strictEqualMessageStart +
1281 message: 'Expected "actual" not to be reference-equal to "expected": {}'
1293 message: 'Expected "actual" not to be reference-equal to "expected":\n\n' +
1381 message: 'The error is expected to be an instance of "RangeError". ' +
1390 message: 'The error is expected to be an instance of "RangeError". ' +
1401 message: 'The validation function is expected to ' +
1421 message: 'The error is expected to be an instance of "RangeError". ' +
1423 'prototype.\n\nError message:\n\nfoobar'
1433 message: 'The "regexp" argument must be an instance of RegExp. ' +
1443 message: 'The input did not match the regular expression /abc/. ' +
1454 message: 'foobar',
1469 message: 'The "string" argument must be of type string. ' +
1483 message: 'The "regexp" argument must be an instance of RegExp. ' +
1493 message: 'The input was expected to not match the regular expression ' +
1504 message: 'foobar',
1519 message: 'The "string" argument must be of type string. ' +