File tree 5 files changed +20
-4
lines changed
5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " redux-actions-assertions-js" ,
3
3
"description" : " Javascript assertions for redux actions testing" ,
4
- "version" : " 1.0 .0" ,
4
+ "version" : " 1.1 .0" ,
5
5
"main" : " lib/index.js" ,
6
6
"files" : [
7
7
" lib"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { toDispatchActionsWithState } from './asserts/toDispatchActionsWithState
3
3
import { toNotDispatchActions } from './asserts/toNotDispatchActions' ;
4
4
import { toNotDispatchActionsWithState } from './asserts/toNotDispatchActionsWithState' ;
5
5
6
- export default {
6
+ export const assertions = {
7
7
toDispatchActions,
8
8
toDispatchActionsWithState,
9
9
toNotDispatchActions,
Original file line number Diff line number Diff line change 1
1
import { registerMiddlewares } from './mockStore' ;
2
2
import { registerInitialStoreState , buildInitialStoreState } from './initialState' ;
3
- import assertions from './assertions' ;
3
+ import { assertions } from './assertions' ;
4
4
5
5
export {
6
6
registerMiddlewares ,
Original file line number Diff line number Diff line change 1
1
import expect from 'expect' ;
2
- import assertions from '../../src/assertions' ;
2
+ import { assertions } from '../../src/assertions' ;
3
3
4
4
describe ( 'assertions' , ( ) => {
5
5
it ( 'should export toDispatchActions' , ( ) => {
Original file line number Diff line number Diff line change @@ -22,4 +22,20 @@ describe('index', () => {
22
22
it ( 'should export assertions' , ( ) => {
23
23
expect ( assertions ) . toBeA ( 'object' ) ;
24
24
} ) ;
25
+
26
+ it ( 'should export toDispatchActions' , ( ) => {
27
+ expect ( assertions . toDispatchActions ) . toBeA ( 'function' ) ;
28
+ } ) ;
29
+
30
+ it ( 'should export toDispatchActionsWithState' , ( ) => {
31
+ expect ( assertions . toDispatchActionsWithState ) . toBeA ( 'function' ) ;
32
+ } ) ;
33
+
34
+ it ( 'should export toNotDispatchActions' , ( ) => {
35
+ expect ( assertions . toNotDispatchActions ) . toBeA ( 'function' ) ;
36
+ } ) ;
37
+
38
+ it ( 'should export toNotDispatchActionsWithState' , ( ) => {
39
+ expect ( assertions . toNotDispatchActionsWithState ) . toBeA ( 'function' ) ;
40
+ } ) ;
25
41
} ) ;
You can’t perform that action at this time.
0 commit comments