Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 27, 2024
1 parent cd9850a commit 6664d3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/integration-tests/test/request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ guard(describe, polyfilledOrNative)('request', () => {
})

test('parses and reconstructs the URL alone', () => {
const url = 'https://vercel.com/foo/bar?one=value'
const url = new URL('https://vercel.com/foo/bar?one=value')
const req = new Request(url)
expect(req.url).toEqual(url)
expect(req.url.toString()).toEqual('https://vercel.com/foo/bar?one=value')
})

test('throws when the URL is malformed', () => {
Expand Down

0 comments on commit 6664d3b

Please sign in to comment.