mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
b8a8eedf32
The wording seems clearer when using `values` instead of `inputs`. PR-URL: https://github.com/nodejs/node/pull/23056 Refs: https://github.com/nodejs/node/issues/22763 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
22 lines
649 B
JavaScript
22 lines
649 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert').strict;
|
|
|
|
try {
|
|
// Activate colors even if the tty does not support colors.
|
|
process.env.COLORTERM = '1';
|
|
assert.deepStrictEqual([1, 2, 2, 2], [2, 2, 2, 2]);
|
|
} catch (err) {
|
|
const expected = 'Expected values to be strictly deep-equal:\n' +
|
|
'\u001b[32m+ actual\u001b[39m \u001b[31m- expected\u001b[39m' +
|
|
' \u001b[34m...\u001b[39m Lines skipped\n\n' +
|
|
' [\n' +
|
|
'\u001b[32m+\u001b[39m 1,\n' +
|
|
'\u001b[31m-\u001b[39m 2,\n' +
|
|
' 2,\n' +
|
|
'\u001b[34m...\u001b[39m\n' +
|
|
' 2\n' +
|
|
' ]';
|
|
assert.strictEqual(err.message, expected);
|
|
}
|