From 382e07a0bdc4d5d0d5d5c51c44c30ca9101b151c Mon Sep 17 00:00:00 2001 From: Krist Wongsuphasawat Date: Fri, 26 Apr 2019 16:23:54 -0700 Subject: [PATCH] refactor: do not declare unused var --- packages/superset-ui-connection/test/callApi/callApi.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/superset-ui-connection/test/callApi/callApi.test.ts b/packages/superset-ui-connection/test/callApi/callApi.test.ts index 886b9e0245..39b91ff93a 100644 --- a/packages/superset-ui-connection/test/callApi/callApi.test.ts +++ b/packages/superset-ui-connection/test/callApi/callApi.test.ts @@ -353,7 +353,7 @@ describe('callApi()', () => { it('reuses cached responses on 304 status', async () => { // first call sets the cache - const firstResponse = await callApi({ url: mockCacheUrl, method: 'GET' }); + await callApi({ url: mockCacheUrl, method: 'GET' }); const calls = fetchMock.calls(mockCacheUrl); expect(calls).toHaveLength(1); // second call reuses the cached payload on a 304