@@ -203,7 +203,7 @@ describe('compression()', function () {
203
203
. request ( )
204
204
. on ( 'response' , function ( res ) {
205
205
client = res
206
- assert . equal ( res . headers [ 'content-encoding' ] , 'gzip' )
206
+ assert . strictEqual ( res . headers [ 'content-encoding' ] , 'gzip' )
207
207
res . pause ( )
208
208
res . on ( 'end' , cb )
209
209
pressure ( )
@@ -523,7 +523,7 @@ describe('compression()', function () {
523
523
524
524
describe ( '.filter' , function ( ) {
525
525
it ( 'should be a function' , function ( ) {
526
- assert . equal ( typeof compression . filter , 'function' )
526
+ assert . strictEqual ( typeof compression . filter , 'function' )
527
527
} )
528
528
529
529
it ( 'should return false on empty response' , function ( done ) {
@@ -586,7 +586,7 @@ describe('compression()', function () {
586
586
587
587
function onchunk ( chunk ) {
588
588
assert . ok ( chunks ++ < 2 )
589
- assert . equal ( chunk . length , 1024 )
589
+ assert . strictEqual ( chunk . length , 1024 )
590
590
next ( )
591
591
}
592
592
@@ -609,7 +609,7 @@ describe('compression()', function () {
609
609
610
610
function onchunk ( chunk ) {
611
611
assert . ok ( chunks ++ < 20 )
612
- assert . equal ( chunk . toString ( ) , '..' )
612
+ assert . strictEqual ( chunk . toString ( ) , '..' )
613
613
next ( )
614
614
}
615
615
@@ -632,7 +632,7 @@ describe('compression()', function () {
632
632
633
633
function onchunk ( chunk ) {
634
634
assert . ok ( chunks ++ < 20 )
635
- assert . equal ( chunk . toString ( ) , '..' )
635
+ assert . strictEqual ( chunk . toString ( ) , '..' )
636
636
next ( )
637
637
}
638
638
@@ -663,7 +663,7 @@ function createServer (opts, fn) {
663
663
664
664
function shouldHaveBodyLength ( length ) {
665
665
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 )
667
667
}
668
668
}
669
669
@@ -688,7 +688,7 @@ function unchunk (encoding, onchunk, onend) {
688
688
return function ( res ) {
689
689
var stream
690
690
691
- assert . equal ( res . headers [ 'content-encoding' ] , encoding )
691
+ assert . strictEqual ( res . headers [ 'content-encoding' ] , encoding )
692
692
693
693
switch ( encoding ) {
694
694
case 'deflate' :
0 commit comments