summaryrefslogtreecommitdiff
path: root/test/pseudo-tty
diff options
context:
space:
mode:
authorivan.filenko <filenko@uchi.ru>2018-10-15 20:04:29 +0300
committerRefael Ackermann <refack@gmail.com>2018-11-10 11:45:20 -0500
commit936ac681b2f5cf58cd2f1069ccc1720c7981e00e (patch)
tree664b8ab9a9493328000dd367d2b10163488d0932 /test/pseudo-tty
parent04ccc98de65b0473d7e86a632cfe5188f31a84a8 (diff)
downloadandroid-node-v8-936ac681b2f5cf58cd2f1069ccc1720c7981e00e.tar.gz
android-node-v8-936ac681b2f5cf58cd2f1069ccc1720c7981e00e.tar.bz2
android-node-v8-936ac681b2f5cf58cd2f1069ccc1720c7981e00e.zip
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>
Diffstat (limited to 'test/pseudo-tty')
-rw-r--r--test/pseudo-tty/test-tty-get-color-depth.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/pseudo-tty/test-tty-get-color-depth.js b/test/pseudo-tty/test-tty-get-color-depth.js
index d802add118..e735f4c286 100644
--- a/test/pseudo-tty/test-tty-get-color-depth.js
+++ b/test/pseudo-tty/test-tty-get-color-depth.js
@@ -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);
}