@@ -39,7 +39,7 @@ test('decorators add headers', (t) => {
3939 const address = `http://127.0.0.1:${ portNum } `
4040 http . get ( address , ( res ) => {
4141 t . ok ( res . headers . etag )
42- t . is ( res . headers . etag , tag )
42+ t . equal ( res . headers . etag , tag )
4343 } ) . on ( 'error' , ( err ) => t . threw ( err ) )
4444 } )
4545} )
@@ -59,7 +59,7 @@ test('sets no-cache header', (t) => {
5959
6060 http . get ( address , ( res ) => {
6161 t . ok ( res . headers [ 'cache-control' ] )
62- t . is ( res . headers [ 'cache-control' ] , 'no-cache' )
62+ t . equal ( res . headers [ 'cache-control' ] , 'no-cache' )
6363 } ) . on ( 'error' , ( err ) => t . threw ( err ) )
6464 } )
6565} )
@@ -83,7 +83,7 @@ test('sets private with max-age header', (t) => {
8383
8484 http . get ( address , ( res ) => {
8585 t . ok ( res . headers [ 'cache-control' ] )
86- t . is ( res . headers [ 'cache-control' ] , 'private, max-age=300' )
86+ t . equal ( res . headers [ 'cache-control' ] , 'private, max-age=300' )
8787 } ) . on ( 'error' , ( err ) => t . threw ( err ) )
8888 } )
8989} )
@@ -103,7 +103,7 @@ test('sets no-store with max-age header', (t) => {
103103
104104 http . get ( address , ( res ) => {
105105 t . ok ( res . headers [ 'cache-control' ] )
106- t . is ( res . headers [ 'cache-control' ] , 'no-store, max-age=300' )
106+ t . equal ( res . headers [ 'cache-control' ] , 'no-store, max-age=300' )
107107 } ) . on ( 'error' , ( err ) => t . threw ( err ) )
108108 } )
109109} )
@@ -126,7 +126,7 @@ test('sets the expires header', (t) => {
126126
127127 http . get ( address , ( res ) => {
128128 t . ok ( res . headers . expires )
129- t . is ( res . headers . expires , now . toUTCString ( ) )
129+ t . equal ( res . headers . expires , now . toUTCString ( ) )
130130 } ) . on ( 'error' , ( err ) => t . threw ( err ) )
131131 } )
132132} )
0 commit comments