2018-03-20 02:25:22 +01:00
|
|
|
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const assert = require('assert').strict;
|
|
|
|
|
|
|
|
try {
|
|
|
|
// Activate colors even if the tty does not support colors.
|
|
|
|
process.env.COLORTERM = '1';
|
2018-04-26 03:24:45 +02:00
|
|
|
assert.deepStrictEqual([1, 2, 2, 2], [2, 2, 2, 2]);
|
2018-03-20 02:25:22 +01:00
|
|
|
} catch (err) {
|
2018-03-12 22:14:24 +01:00
|
|
|
const expected = 'Input A expected to strictly deep-equal input B:\n' +
|
2018-04-26 03:24:45 +02:00
|
|
|
'\u001b[32m+ expected\u001b[39m \u001b[31m- actual\u001b[39m' +
|
|
|
|
' \u001b[34m...\u001b[39m Lines skipped\n\n' +
|
2018-03-20 02:25:22 +01:00
|
|
|
' [\n' +
|
|
|
|
'\u001b[31m-\u001b[39m 1,\n' +
|
|
|
|
'\u001b[32m+\u001b[39m 2,\n' +
|
2018-04-26 03:24:45 +02:00
|
|
|
' 2,\n' +
|
|
|
|
'\u001b[34m...\u001b[39m\n' +
|
2018-03-20 02:25:22 +01:00
|
|
|
' 2\n' +
|
|
|
|
' ]';
|
|
|
|
assert.strictEqual(err.message, expected);
|
|
|
|
}
|