summaryrefslogtreecommitdiff
path: root/test/parallel/test-stream3-cork-uncork.js
diff options
context:
space:
mode:
authorGibson Fahnestock <gib@uk.ibm.com>2017-01-08 15:36:25 +0000
committerGibson Fahnestock <gib@uk.ibm.com>2017-01-11 14:19:26 +0000
commit3d2aef3979cf7ac986908dbb9879216caec4a3ff (patch)
tree0566cf3150e4b9bcce3359814b3927c562bdbc42 /test/parallel/test-stream3-cork-uncork.js
parent81fef918d5a8a9aa297b78ade5e58d6caa3176e6 (diff)
downloadandroid-node-v8-3d2aef3979cf7ac986908dbb9879216caec4a3ff.tar.gz
android-node-v8-3d2aef3979cf7ac986908dbb9879216caec4a3ff.tar.bz2
android-node-v8-3d2aef3979cf7ac986908dbb9879216caec4a3ff.zip
test: s/assert.equal/assert.strictEqual/
Use assert.strictEqual instead of assert.equal in tests, manually convert types where necessary. PR-URL: https://github.com/nodejs/node/pull/10698 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Diffstat (limited to 'test/parallel/test-stream3-cork-uncork.js')
-rw-r--r--test/parallel/test-stream3-cork-uncork.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-stream3-cork-uncork.js b/test/parallel/test-stream3-cork-uncork.js
index 821fd22bf8..98f74a45c6 100644
--- a/test/parallel/test-stream3-cork-uncork.js
+++ b/test/parallel/test-stream3-cork-uncork.js
@@ -20,7 +20,7 @@ const w = new Writable();
// lets arrange to store the chunks
w._write = function(chunk, encoding, cb) {
// default encoding given none was specified
- assert.equal(encoding, 'buffer');
+ assert.strictEqual(encoding, 'buffer');
seenChunks.push(chunk);
cb();
@@ -50,7 +50,7 @@ function writeChunks(remainingChunks, callback) {
// do an initial write
w.write('stuff');
// the write was immediate
-assert.equal(seenChunks.length, 1);
+assert.strictEqual(seenChunks.length, 1);
// reset the chunks seen so far
seenChunks = [];
@@ -60,13 +60,13 @@ w.cork();
// write the bufferedChunks
writeChunks(inputChunks, () => {
// should not have seen anything yet
- assert.equal(seenChunks.length, 0);
+ assert.strictEqual(seenChunks.length, 0);
// trigger writing out the buffer
w.uncork();
// buffered bytes shoud be seen in current tick
- assert.equal(seenChunks.length, 4);
+ assert.strictEqual(seenChunks.length, 4);
// did the chunks match
for (let i = 0, l = expectedChunks.length; i < l; i++) {