mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
9cda6f28c8
PR-URL: https://github.com/nodejs/node/pull/28346 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
20 lines
388 B
JavaScript
20 lines
388 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert').strict;
|
|
|
|
process.env.NODE_DISABLE_COLORS = true;
|
|
|
|
assert.throws(
|
|
() => {
|
|
assert.deepStrictEqual({}, { foo: 'bar' });
|
|
},
|
|
{
|
|
message: 'Expected values to be strictly deep-equal:\n' +
|
|
'+ actual - expected\n' +
|
|
'\n' +
|
|
'+ {}\n' +
|
|
'- {\n' +
|
|
'- foo: \'bar\'\n' +
|
|
'- }'
|
|
});
|