Skip to content

Commit

Permalink
test(fetch): improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
gutenye committed Jan 3, 2025
1 parent bc90b2e commit e487445
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/fetch/__tests__/fetchUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ describe('createRequest', () => {

it('path traversal attack', async () => {
const api = createRequest(BASE_URL)
expect(await api('/../a')).toEqual([
new URL(`${BASE_URL}/a`),
{
headers: {
'Content-Type': 'application/json',
},
},
])
expect((await api('/../a'))[0]).toEqual(new URL(`${BASE_URL}/a`))
})
})

0 comments on commit e487445

Please sign in to comment.