Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
victorteokw committed Dec 8, 2024
1 parent 7912496 commit f269a58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/runtime/response/response.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test('cookie in text response', async (t) => {
uri: '/textResponse',
})
const response = await server.process(test_request)
t.is(response.headerValue('set-cookie'), 'foo=bar')
t.is(response.headers.get('set-cookie'), 'foo=bar')
})

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

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

0 comments on commit f269a58

Please sign in to comment.