Skip to content

Commit

Permalink
Remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbrillig committed Sep 9, 2024
1 parent 4f506b1 commit a6b4345
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/gitnews-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ window.electronApi = {
};

describe('handleFetchError()', function () {
it('does nothing if the error is GitHubTokenNotFound', function () {
const dispatch = jest.fn();
const handleFetchError = getErrorHandler(dispatch);
handleFetchError({ code: 'GitHubTokenNotFound' });
expect(dispatch).not.toHaveBeenCalled();
});

it('enables offline mode if error is ENETDOWN', function () {
const dispatch = jest.fn();
const handleFetchError = getErrorHandler(dispatch);
Expand Down

0 comments on commit a6b4345

Please sign in to comment.