Skip to content

Commit 2b0410a

Browse files
prog1devBridgeAR
authored andcommittedNov 13, 2018
test: use assert.strictEqual instead of assert.equal
PR-URL: #23673 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent 6f80a45 commit 2b0410a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎test/pseudo-tty/test-tty-get-color-depth.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const writeStream = new WriteStream(fd);
1010

1111
{
1212
const depth = writeStream.getColorDepth();
13-
assert.equal(typeof depth, 'number');
13+
assert.strictEqual(typeof depth, 'number');
1414
assert(depth >= 1 && depth <= 24);
1515
}
1616

@@ -44,7 +44,7 @@ const writeStream = new WriteStream(fd);
4444
[{ TERM: 'dumb', COLORTERM: '1' }, 4],
4545
].forEach(([env, depth], i) => {
4646
const actual = writeStream.getColorDepth(env);
47-
assert.equal(
47+
assert.strictEqual(
4848
actual,
4949
depth,
5050
`i: ${i}, expected: ${depth}, actual: ${actual}, env: ${env}`
@@ -57,8 +57,8 @@ const writeStream = new WriteStream(fd);
5757
const [ value, depth1, depth2 ] = process.platform !== 'win32' ?
5858
['win32', 1, 4] : ['linux', 4, 1];
5959

60-
assert.equal(writeStream.getColorDepth({}), depth1);
60+
assert.strictEqual(writeStream.getColorDepth({}), depth1);
6161
Object.defineProperty(process, 'platform', { value });
62-
assert.equal(writeStream.getColorDepth({}), depth2);
62+
assert.strictEqual(writeStream.getColorDepth({}), depth2);
6363
Object.defineProperty(process, 'platform', platform);
6464
}

0 commit comments

Comments
 (0)