Skip to content

Commit 9f00ae4

Browse files
committed
tests: use strict equality
1 parent 1c69c86 commit 9f00ae4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/compression.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ describe('compression()', function () {
203203
.request()
204204
.on('response', function (res) {
205205
client = res
206-
assert.equal(res.headers['content-encoding'], 'gzip')
206+
assert.strictEqual(res.headers['content-encoding'], 'gzip')
207207
res.pause()
208208
res.on('end', cb)
209209
pressure()
@@ -523,7 +523,7 @@ describe('compression()', function () {
523523

524524
describe('.filter', function () {
525525
it('should be a function', function () {
526-
assert.equal(typeof compression.filter, 'function')
526+
assert.strictEqual(typeof compression.filter, 'function')
527527
})
528528

529529
it('should return false on empty response', function (done) {
@@ -586,7 +586,7 @@ describe('compression()', function () {
586586

587587
function onchunk (chunk) {
588588
assert.ok(chunks++ < 2)
589-
assert.equal(chunk.length, 1024)
589+
assert.strictEqual(chunk.length, 1024)
590590
next()
591591
}
592592

@@ -609,7 +609,7 @@ describe('compression()', function () {
609609

610610
function onchunk (chunk) {
611611
assert.ok(chunks++ < 20)
612-
assert.equal(chunk.toString(), '..')
612+
assert.strictEqual(chunk.toString(), '..')
613613
next()
614614
}
615615

@@ -632,7 +632,7 @@ describe('compression()', function () {
632632

633633
function onchunk (chunk) {
634634
assert.ok(chunks++ < 20)
635-
assert.equal(chunk.toString(), '..')
635+
assert.strictEqual(chunk.toString(), '..')
636636
next()
637637
}
638638

@@ -663,7 +663,7 @@ function createServer (opts, fn) {
663663

664664
function shouldHaveBodyLength (length) {
665665
return function (res) {
666-
assert.equal(res.text.length, length, 'should have body length of ' + length)
666+
assert.strictEqual(res.text.length, length, 'should have body length of ' + length)
667667
}
668668
}
669669

@@ -688,7 +688,7 @@ function unchunk (encoding, onchunk, onend) {
688688
return function (res) {
689689
var stream
690690

691-
assert.equal(res.headers['content-encoding'], encoding)
691+
assert.strictEqual(res.headers['content-encoding'], encoding)
692692

693693
switch (encoding) {
694694
case 'deflate':

0 commit comments

Comments
 (0)