From ee59e0fc965260872d0e2bb3f9051b856fbac2cb Mon Sep 17 00:00:00 2001 From: JacksonLei123 Date: Mon, 10 Feb 2025 23:09:15 -0500 Subject: [PATCH] fix: lint fixes from suggested commit --- tests/library/global-fetch.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/library/global-fetch.spec.ts b/tests/library/global-fetch.spec.ts index 93d8179bc0..0e2e0c3b38 100644 --- a/tests/library/global-fetch.spec.ts +++ b/tests/library/global-fetch.spec.ts @@ -556,8 +556,7 @@ it('should not throw when fetchFailOnStatusCode is set to false inside APIReques res.writeHead(404, { 'Content-Length': 10, 'Content-Type': 'text/plain' }); res.end('Not found.'); }); -const response = await request.fetch(server.EMPTY_PAGE); -expect(response.status()).toBe(404); - expect(error.message).toBeUndefined(); + const response = await request.fetch(server.EMPTY_PAGE); + expect(response.status()).toBe(404); await request.dispose(); });