test: use assert.strictEqual instead of assert.equal

PR-URL: https://github.com/nodejs/node/pull/23673
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
ivan.filenko authored and Refael Ackermann committed 2018-11-10 11:45:20 -05:00
1 parent 04ccc98de6
commit 936ac681b2
1 file changed
+4 -4
+4 -4
View File
@@ -10,7 +10,7 @@ const writeStream = new WriteStream(fd);
{
const depth = writeStream.getColorDepth();
assert.equal(typeof depth, 'number');
assert.strictEqual(typeof depth, 'number');
assert(depth >= 1 && depth <= 24);
}
@@ -44,7 +44,7 @@ const writeStream = new WriteStream(fd);
[{ TERM: 'dumb', COLORTERM: '1' }, 4],
].forEach(([env, depth], i) => {
const actual = writeStream.getColorDepth(env);
assert.equal(
assert.strictEqual(
actual,
depth,
`i: ${i}, expected: ${depth}, actual: ${actual}, env: ${env}`
@@ -57,8 +57,8 @@ const writeStream = new WriteStream(fd);
const [ value, depth1, depth2 ] = process.platform !== 'win32' ?
['win32', 1, 4] : ['linux', 4, 1];
assert.equal(writeStream.getColorDepth({}), depth1);
assert.strictEqual(writeStream.getColorDepth({}), depth1);
Object.defineProperty(process, 'platform', { value });
assert.equal(writeStream.getColorDepth({}), depth2);
assert.strictEqual(writeStream.getColorDepth({}), depth2);
Object.defineProperty(process, 'platform', platform);
}