File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 32
32
"fastify" : " ^2.0.0" ,
33
33
"pre-commit" : " ^1.2.2" ,
34
34
"snazzy" : " ^8.0.0" ,
35
- "standard" : " ^13 .0.1 " ,
35
+ "standard" : " ^14 .0.0 " ,
36
36
"tap" : " ^12.6.6"
37
37
},
38
38
"dependencies" : {
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ test('decorators add headers', (t) => {
38
38
const portNum = instance . server . address ( ) . port
39
39
const address = `http://127.0.0.1:${ portNum } `
40
40
http . get ( address , ( res ) => {
41
- t . ok ( res . headers [ ' etag' ] )
42
- t . is ( res . headers [ ' etag' ] , tag )
41
+ t . ok ( res . headers . etag )
42
+ t . is ( res . headers . etag , tag )
43
43
} ) . on ( 'error' , ( err ) => t . threw ( err ) )
44
44
} )
45
45
} )
@@ -125,8 +125,8 @@ test('sets the expires header', (t) => {
125
125
const address = `http://127.0.0.1:${ portNum } `
126
126
127
127
http . get ( address , ( res ) => {
128
- t . ok ( res . headers [ ' expires' ] )
129
- t . is ( res . headers [ ' expires' ] , now . toUTCString ( ) )
128
+ t . ok ( res . headers . expires )
129
+ t . is ( res . headers . expires , now . toUTCString ( ) )
130
130
} ) . on ( 'error' , ( err ) => t . threw ( err ) )
131
131
} )
132
132
} )
You can’t perform that action at this time.
0 commit comments