fix: lint fixes from suggested commit

This commit is contained in:
JacksonLei123 2025-02-10 23:09:15 -05:00
parent b42bf792ed
commit ee59e0fc96

View file

@ -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();
});