Skip to content

Commit a0fb937

Browse files
committed
added a test for changeTutorial
1 parent 53d5d31 commit a0fb937

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/actions/__tests__/actionCreator.test.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,13 @@ describe('Testing All of The Action Creators', () => {
2828
};
2929
expect(actions.addProp(payld)).toEqual(expectedAction);
3030
});
31+
32+
it('changeTutorial returns a proper action', () => {
33+
const payld = 1;
34+
const expectedAction = {
35+
type: types.CHANGE_TUTORIAL,
36+
payload: { tutorial: payld }
37+
};
38+
expect(actions.changeTutorial(payld)).toEqual(expectedAction);
39+
});
3140
});

0 commit comments

Comments
 (0)