From 8f8e2f8211cf13ac7188b6d4bcef4a7821b13ba8 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 5 May 2020 09:24:19 -0700 Subject: [PATCH] chore: fix lint issues (#109) --- test/index.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/test/index.ts b/test/index.ts index 48fcead..54fadcf 100644 --- a/test/index.ts +++ b/test/index.ts @@ -301,28 +301,22 @@ describe('retry-axios', () => { it('should ignore requests that have been canceled', async () => { const scopes = [ - nock(url) - .get('/') - .times(2) - .delay(5) - .reply(500), - nock(url) - .get('/') - .reply(200, 'toast'), + nock(url).get('/').times(2).delay(5).reply(500), + nock(url).get('/').reply(200, 'toast'), ]; interceptorId = rax.attach(); try { const src = axios.CancelToken.source(); const cfg: rax.RaxConfig = { url, - raxConfig: { retry: 2 }, + raxConfig: {retry: 2}, cancelToken: src.token, }; const req = axios(cfg); setTimeout(() => { src.cancel(); }, 10); - const res = await req; + await req; throw new Error('The canceled request completed.'); } catch (err) { assert.strictEqual(axios.isCancel(err), true);