Skip to content

Commit 3fe0f29

Browse files
committed
Add server.close
1 parent aa4d61a commit 3fe0f29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

middleware/security.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test ('X-XSS-Protection: 1; mode=block', async t => {
3434
t.ok
3535
(expected.test (response.headers.get ('x-xss-protection')))
3636

37-
server.close ()
37+
server.close ``
3838
t.end ()
3939

4040
})
@@ -50,7 +50,7 @@ test ('X-Frame-Options: deny', async t => {
5050
t.equal
5151
('deny', response.headers.get ('x-frame-options'))
5252

53-
server.close ()
53+
server.close ``
5454
t.end ()
5555
})
5656

@@ -65,7 +65,7 @@ test ('X-Content-Type-Options: nosniff', async t => {
6565
t.equal
6666
('nosniff', response.headers.get ('x-content-type-options'))
6767

68-
server.close ()
68+
server.close ``
6969
t.end ()
7070
})
7171

@@ -84,6 +84,6 @@ test ('Strict-Transport-Security', async t => {
8484
t.ok
8585
(expected.test (response.headers.get ('strict-transport-security')))
8686

87-
server.close ()
87+
server.close ``
8888
t.end ()
8989
})

0 commit comments

Comments
 (0)