summaryrefslogtreecommitdiff
path: root/test/parallel/test-buffer-alloc.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-buffer-alloc.js')
-rw-r--r--test/parallel/test-buffer-alloc.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-buffer-alloc.js b/test/parallel/test-buffer-alloc.js
index 1332a16a3c..1a907ba627 100644
--- a/test/parallel/test-buffer-alloc.js
+++ b/test/parallel/test-buffer-alloc.js
@@ -742,7 +742,7 @@ assert.strictEqual('<Buffer 81 a3 66 6f 6f a3 62 61 72>', x.inspect());
Buffer.allocUnsafe(3.3).fill().toString();
// throws bad argument error in commit 43cb4ec
Buffer.alloc(3.3).fill().toString();
-assert.equal(Buffer.allocUnsafe(-1).length, 0);
+assert.strictEqual(Buffer.allocUnsafe(-1).length, 0);
assert.strictEqual(Buffer.allocUnsafe(NaN).length, 0);
assert.strictEqual(Buffer.allocUnsafe(3.3).length, 3);
assert.strictEqual(Buffer.from({length: 3.3}).length, 3);
@@ -779,7 +779,7 @@ Buffer.from(Buffer.allocUnsafe(0), 0, 0);
'ucs-2',
'utf16le',
'utf-16le' ].forEach(function(enc) {
- assert.equal(Buffer.isEncoding(enc), true);
+ assert.strictEqual(Buffer.isEncoding(enc), true);
});
[ 'utf9',
@@ -794,7 +794,7 @@ Buffer.from(Buffer.allocUnsafe(0), 0, 0);
1,
0,
-1 ].forEach(function(enc) {
- assert.equal(Buffer.isEncoding(enc), false);
+ assert.strictEqual(Buffer.isEncoding(enc), false);
});
// GH-5110