From b9799e4f45da70e1fe49957b7c29e35208405d91 Mon Sep 17 00:00:00 2001 From: Joaquim Ley Date: Mon, 17 Jun 2024 15:49:55 +0100 Subject: [PATCH] test: Update request.test.ts to remove duplicate checks (#2984) --- src/request.test.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/request.test.ts b/src/request.test.ts index 0296cf773..61654c130 100644 --- a/src/request.test.ts +++ b/src/request.test.ts @@ -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( @@ -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( @@ -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( @@ -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) @@ -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() @@ -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()