Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
refactor: do not declare unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Apr 26, 2019
1 parent b6a638d commit 382e07a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 382e07a

Please sign in to comment.