Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kadhirr committed Dec 17, 2024
1 parent 4af46fe commit 78344a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,9 @@ test('throws DOMException/Error with name AbortError when aborted by user', asyn
test('throws AbortError when signal was aborted before request', async t => {
const server = await createHttpTestServer();
let requestCount = 0;
server.get('/', () => {requestCount += 1;});
server.get('/', () => {
requestCount += 1;
});

const abortController = new AbortController();
const {signal} = abortController;
Expand All @@ -728,7 +730,7 @@ test('throws AbortError when signal was aborted before request', async t => {

t.true(['DOMException', 'Error'].includes(error.constructor.name), `Expected DOMException or Error, got ${error.constructor.name}`);
t.is(error.name, 'AbortError', `Expected AbortError, got ${error.name}`);
t.is(requestCount,0,"Request count is more than 0, server received request.");
t.is(requestCount, 0, 'Request count is more than 0, server received request.');
});

test('throws AbortError when aborted via Request', async t => {
Expand Down

0 comments on commit 78344a8

Please sign in to comment.