Skip to content

Commit 303bd9c

Browse files
SerayaErynEomm
authored andcommitted
chore update standard (#29)
1 parent e906832 commit 303bd9c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"fastify": "^2.0.0",
3333
"pre-commit": "^1.2.2",
3434
"snazzy": "^8.0.0",
35-
"standard": "^13.0.1",
35+
"standard": "^14.0.0",
3636
"tap": "^12.6.6"
3737
},
3838
"dependencies": {

test/headers.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ test('decorators add headers', (t) => {
3838
const portNum = instance.server.address().port
3939
const address = `http://127.0.0.1:${portNum}`
4040
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)
4343
}).on('error', (err) => t.threw(err))
4444
})
4545
})
@@ -125,8 +125,8 @@ test('sets the expires header', (t) => {
125125
const address = `http://127.0.0.1:${portNum}`
126126

127127
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())
130130
}).on('error', (err) => t.threw(err))
131131
})
132132
})

0 commit comments

Comments
 (0)