Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c417c7a

Browse filesBrowse files
prog1devMylesBorins
authored andcommitted
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 1b5b1cc commit c417c7a
Copy full SHA for c417c7a

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/pseudo-tty/test-tty-get-color-depth.js
+4-4Lines changed: 4 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.