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' +
|
2018-07-03 00:06:57 +00:00
|
|
|
'\u001b[32m+ actual\u001b[39m \u001b[31m- expected\u001b[39m' +
|
2018-04-26 01:24:45 +00:00
|
|
|
' \u001b[34m...\u001b[39m Lines skipped\n\n' +
|
2018-03-20 01:25:22 +00:00
|
|
|
' [\n' +
|
2018-07-03 00:06:57 +00:00
|
|
|
'\u001b[32m+\u001b[39m 1,\n' +
|
|
|
|
'\u001b[31m-\u001b[39m 2,\n' +
|
2018-04-26 01:24:45 +00:00
|
|
|
' 2,\n' +
|
|
|
|
'\u001b[34m...\u001b[39m\n' +
|
2019-06-03 14:05:37 +00:00
|
|
|
' 2,\n' +
|
2018-03-20 01:25:22 +00:00
|
|
|
' 2\n' +
|
|
|
|
' ]';
|
|
|
|
assert.strictEqual(err.message, expected);
|
2020-01-20 20:46:59 +00:00
|
|
|
return true;
|
|
|
|
});
|