Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Commit

Permalink
added more tests for undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwooley committed Sep 18, 2016
1 parent db033c2 commit 90515e5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
19 changes: 12 additions & 7 deletions lib/reducerCreator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/reducerCreator.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/__tests__/reducerCreator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ describe('reducerCreator', () => {
expect(() => (reducerCreator as any)({}, {reducer: ''})('ID'))
.toThrowError(`You cannot have an action called 'reducer'`)
})
it('should work with asyncActions', () => {
expect(() => (reducerCreator as any)({}, {}, {})('ID')).toBeDefined()
})
it('should work without asyncActions', () => {
expect(() => (reducerCreator as any)({}, {})('ID')).toBeDefined()
})
describe('sync actions', () => {
let testReducer
let defaultState = {
Expand Down

0 comments on commit 90515e5

Please sign in to comment.