Skip to content

Commit

Permalink
test: Update request.test.ts to remove duplicate checks (#2984)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaquimLey authored Jun 17, 2024
1 parent 57c95d4 commit b9799e4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ describe('Body methods with caching', () => {
})
)
expect(await req.text()).toEqual(text)
expect(await req.text()).toEqual(text)
expect(await req.json()).toEqual(json)
expect(await req.arrayBuffer()).toEqual(buffer)
expect(await req.blob()).toEqual(
Expand All @@ -194,7 +193,6 @@ describe('Body methods with caching', () => {
})
)
expect(await req.json()).toEqual(json)
expect(await req.json()).toEqual(json)
expect(await req.text()).toEqual(text)
expect(await req.arrayBuffer()).toEqual(buffer)
expect(await req.blob()).toEqual(
Expand All @@ -213,7 +211,6 @@ describe('Body methods with caching', () => {
})
)
expect(await req.arrayBuffer()).toEqual(buffer)
expect(await req.arrayBuffer()).toEqual(buffer)
expect(await req.text()).toEqual(text)
expect(await req.json()).toEqual(json)
expect(await req.blob()).toEqual(
Expand All @@ -234,7 +231,6 @@ describe('Body methods with caching', () => {
})
)
expect(await req.blob()).toEqual(blob)
expect(await req.blob()).toEqual(blob)
expect(await req.text()).toEqual(text)
expect(await req.json()).toEqual(json)
expect(await req.arrayBuffer()).toEqual(buffer)
Expand All @@ -250,7 +246,6 @@ describe('Body methods with caching', () => {
})
)
expect((await req.formData()).get('foo')).toBe('bar')
expect((await req.formData()).get('foo')).toBe('bar')
expect(async () => await req.text()).not.toThrow()
expect(async () => await req.arrayBuffer()).not.toThrow()
expect(async () => await req.blob()).not.toThrow()
Expand All @@ -267,7 +262,6 @@ describe('Body methods with caching', () => {
})
)
expect((await req.parseBody())['foo']).toBe('bar')
expect((await req.parseBody())['foo']).toBe('bar')
expect(async () => await req.text()).not.toThrow()
expect(async () => await req.arrayBuffer()).not.toThrow()
expect(async () => await req.blob()).not.toThrow()
Expand Down

0 comments on commit b9799e4

Please sign in to comment.