Skip to content

Commit

Permalink
test: add second argument check
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 15, 2023
1 parent 3f56d78 commit 11d72cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/vm/tests/integration/request.test.ts
Expand Up @@ -32,3 +32,12 @@ test('Request.referrer can be customized', () => {
})
expect(request.referrer).toEqual('https://vercel.com/home')
})

test('create a Request instance using second argument', () => {
expect(
new Request(
'https://example.com',
new Request('https://example.com', { method: 'POST' })
).method
).toBe('POST')
})

0 comments on commit 11d72cf

Please sign in to comment.