Skip to content

Commit f269a58

Browse files
committed
update tests
1 parent 7912496 commit f269a58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/runtime/response/response.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test('cookie in text response', async (t) => {
4545
uri: '/textResponse',
4646
})
4747
const response = await server.process(test_request)
48-
t.is(response.headerValue('set-cookie'), 'foo=bar')
48+
t.is(response.headers.get('set-cookie'), 'foo=bar')
4949
})
5050

5151
test('cookie in json response', async (t) => {
@@ -54,7 +54,7 @@ test('cookie in json response', async (t) => {
5454
uri: '/jsonResponse',
5555
})
5656
const response = await server.process(test_request)
57-
t.is(response.headerValue('set-cookie'), 'foo=bar')
57+
t.is(response.headers.get('set-cookie'), 'foo=bar')
5858
})
5959

6060
test('cookie in file response', async (t) => {
@@ -63,5 +63,5 @@ test('cookie in file response', async (t) => {
6363
uri: '/fileResponse',
6464
})
6565
const response = await server.process(test_request)
66-
t.is(response.headerValue('set-cookie'), 'foo=bar')
66+
t.is(response.headers.get('set-cookie'), 'foo=bar')
6767
})

0 commit comments

Comments
 (0)