8
8
describe ( 'assertions' , ( ) => {
9
9
describe ( 'action utils' , ( ) => {
10
10
describe ( 'getDispatchedActions' , ( ) => {
11
- it ( 'should be function' , ( ) => { expect ( getDispatchedActions ) . toBeA ( 'function' ) ; } ) ;
11
+ it ( 'should be function' , ( ) => { expect ( getDispatchedActions ) . toBeA ( 'function' ) ; } ) ;
12
12
13
13
it ( 'should return a Promise' , ( ) => {
14
14
const result = getDispatchedActions ( { } , { type : '' } ) ;
@@ -32,7 +32,7 @@ describe('assertions', () => {
32
32
} ;
33
33
}
34
34
35
- it ( 'should be function' , ( ) => { expect ( unrollActions ) . toBeA ( 'function' ) ; } ) ;
35
+ it ( 'should be function' , ( ) => { expect ( unrollActions ) . toBeA ( 'function' ) ; } ) ;
36
36
37
37
it ( 'should return flat array with all actions' , ( ) => {
38
38
unrollActions ( { } , asyncActionCreator ( ) ) . then ( ( result ) => {
@@ -50,7 +50,7 @@ describe('assertions', () => {
50
50
} ) ;
51
51
52
52
describe ( 'assertDispatchedActions' , ( ) => {
53
- it ( 'should be function' , ( ) => { expect ( assertDispatchedActions ) . toBeA ( 'function' ) ; } ) ;
53
+ it ( 'should be function' , ( ) => { expect ( assertDispatchedActions ) . toBeA ( 'function' ) ; } ) ;
54
54
55
55
it ( 'should throw error if expected action was not dispatched' , ( ) => {
56
56
const dispatchedActions = [
@@ -62,8 +62,7 @@ describe('assertions', () => {
62
62
{ type : '10-0' }
63
63
] ;
64
64
65
- expect ( assertDispatchedActions )
66
- . withArgs ( [ dispatchedActions , expectedActions ] )
65
+ expect ( ( ) => { assertDispatchedActions ( dispatchedActions , expectedActions ) ; } )
67
66
. toThrow ( ) ;
68
67
} ) ;
69
68
} ) ;
0 commit comments