Skip to content

Commit

Permalink
[test] action suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
agerard-godaddy committed Sep 25, 2018
1 parent 97a777e commit ffb4f02
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/reducers.spec.js
Expand Up @@ -84,12 +84,18 @@ describe('Reducers', () => {
expect(outState).toEqual({});
});

it('returns original state if unsupported action', () => {
it('returns original state if unsupported action prefix', () => {
const inState = { bogus: 'bogus' };
const outState = reducer(inState, { type: 'BAD_ACTION' });
expect(outState).toBe(inState);
});

it('returns original state if unsupported action suffix', () => {
const inState = { bogus: 'bogus' };
const outState = reducer(inState, { type: 'mockApi_BOGUS' });
expect(outState).toBe(inState);
});

it('calls start handler for START actions', () => {
const inState = { bogus: 'bogus' };
const outState = reducer(inState, { type: mockStartActionType });
Expand Down

0 comments on commit ffb4f02

Please sign in to comment.