Skip to content

Commit

Permalink
refactor: remove duplicated test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkklapp committed May 31, 2022
1 parent 4018361 commit 57f6395
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions frontend/src/store/actions/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,30 +84,6 @@ describe('actions', () => {
},
);
});
xit('handles rejection when something fails', (done) => {
apiRequest.mockResolvedValueOnce({});

testAction(
actions.fetchPosts,
null,
{ posts: [] },
[
{
type: 'SET_POSTS',
payload: POSTS_RESPONSE_FIXTURE,
},
],
() => {
expect(apiRequest).toHaveBeenCalledWith('https://my-api.com/posts', {
headers: {
Authorization: 'Bearer token',
ContentType: 'application/json',
},
});
done();
},
);
});
});
describe('setMessage', () => {
it('sets the message in the store', (done) => {
Expand Down

0 comments on commit 57f6395

Please sign in to comment.