2018-03-20 01:25:22 +00:00
|
|
|
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const assert = require('assert').strict;
|
|
|
|
|
2020-01-20 20:46:59 +00:00
|
|
|
assert.throws(() => {
|
|
|
|
process.env.FORCE_COLOR = '1';
|
2019-02-28 20:29:08 +00:00
|
|
|
delete process.env.NODE_DISABLE_COLORS;
|
2020-01-20 20:46:59 +00:00
|
|
|
delete process.env.NO_COLOR;
|
2019-06-03 14:05:37 +00:00
|
|
|
assert.deepStrictEqual([1, 2, 2, 2, 2], [2, 2, 2, 2, 2]);
|
2020-01-20 20:46:59 +00:00
|
|
|
}, (err) => {
|
2018-09-25 09:17:30 +00:00
|
|
|
const expected = 'Expected values to be strictly deep-equal:\n' +
|
2024-10-17 16:02:54 +00:00
|
|
|
'\x1B[32m+ actual\x1B[39m \x1B[31m- expected\x1B[39m\n' +
|
|
|
|
'\n' +
|
|
|
|
'\x1B[39m [\n' +
|
|
|
|
'\x1B[32m+\x1B[39m 1,\n' +
|
|
|
|
'\x1B[39m 2,\n' +
|
|
|
|
'\x1B[39m 2,\n' +
|
|
|
|
'\x1B[39m 2,\n' +
|
|
|
|
'\x1B[39m 2,\n' +
|
|
|
|
'\x1B[31m-\x1B[39m 2\n' +
|
|
|
|
'\x1B[39m ]\n';
|
2018-03-20 01:25:22 +00:00
|
|
|
assert.strictEqual(err.message, expected);
|
2020-01-20 20:46:59 +00:00
|
|
|
return true;
|
|
|
|
});
|