Lines Matching refs:actual

34   strictEqualObject: 'Expected "actual" to be reference-equal to "expected":',
36 notDeepStrictEqual: 'Expected "actual" not to be strictly deep-equal to:',
37 notStrictEqual: 'Expected "actual" to be strictly unequal to:',
39 'Expected "actual" not to be reference-equal to "expected":',
40 notDeepEqual: 'Expected "actual" not to be loosely deep-equal to:',
80 function createErrDiff(actual, expected, operator) {
85 const actualInspected = inspectValue(actual);
95 ((typeof actual === 'object' && actual !== null &&
97 (typeof actual === 'function' && typeof expected === 'function'))) {
101 // If "actual" and "expected" fit on a single line and they are not strictly
111 // If the character length of "actual" and "expected" together is less than
115 if ((typeof actual !== 'object' || actual === null) &&
117 (actual !== 0 || expected !== 0)) { // -0 === +0
193 `\n${colors.green}+ actual${colors.white} ${colors.red}- expected${colors.white}`;
235 // Only extra actual lines exist
248 // add a comma at the end of the actual line. Otherwise the output could
284 // Add the actual line to the result and cache the expected diverging
337 actual,
353 if (typeof actual === 'object' && actual !== null &&
355 'stack' in actual && actual instanceof Error &&
357 actual = copyError(actual);
362 super(createErrDiff(actual, expected, operator));
368 const res = StringPrototypeSplit(inspectValue(actual), '\n');
370 // In case "actual" is an object or a function, it should not be
373 ((typeof actual === 'object' && actual !== null) ||
374 typeof actual === 'function')) {
394 let res = inspectValue(actual);
437 this.actual = undefined;
442 this['actual ' + i] = details[i].actual;
448 this.actual = actual;
465 const tmpActual = this.actual;
468 if (typeof this.actual === 'string') {
469 this.actual = addEllipsis(this.actual);
475 // This limits the `actual` and `expected` property default inspection to
477 // to the actual error message which contains a combined view of these two
486 this.actual = tmpActual;