Skip to content

Commit

Permalink
fix headers test - use fetch API
Browse files Browse the repository at this point in the history
  • Loading branch information
derkoe committed Jul 15, 2024
1 parent 7b61b16 commit 9e297ea
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/headers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ describe('header processing', () => {

expect(cookies).toEqual({
cookies: [],
headers: {
'content-type': 'application/json',
location: '/'
}
headers
});
});

Expand All @@ -40,7 +37,7 @@ describe('header processing', () => {
const cookies = splitCookiesFromHeaders(headers);

expect(cookies).toStrictEqual({
headers: {},
headers: new Headers(),
cookies: [
{
expires: new Date('1994-11-06T08:49:37.000Z'),
Expand Down

0 comments on commit 9e297ea

Please sign in to comment.