88describe ( 'assertions' , ( ) => {
99 describe ( 'action utils' , ( ) => {
1010 describe ( 'getDispatchedActions' , ( ) => {
11- it ( 'should be function' , ( ) => { expect ( getDispatchedActions ) . toBeA ( 'function' ) ; } ) ;
11+ it ( 'should be function' , ( ) => { expect ( getDispatchedActions ) . toBeA ( 'function' ) ; } ) ;
1212
1313 it ( 'should return a Promise' , ( ) => {
1414 const result = getDispatchedActions ( { } , { type : '' } ) ;
@@ -32,7 +32,7 @@ describe('assertions', () => {
3232 } ;
3333 }
3434
35- it ( 'should be function' , ( ) => { expect ( unrollActions ) . toBeA ( 'function' ) ; } ) ;
35+ it ( 'should be function' , ( ) => { expect ( unrollActions ) . toBeA ( 'function' ) ; } ) ;
3636
3737 it ( 'should return flat array with all actions' , ( ) => {
3838 unrollActions ( { } , asyncActionCreator ( ) ) . then ( ( result ) => {
@@ -50,7 +50,7 @@ describe('assertions', () => {
5050 } ) ;
5151
5252 describe ( 'assertDispatchedActions' , ( ) => {
53- it ( 'should be function' , ( ) => { expect ( assertDispatchedActions ) . toBeA ( 'function' ) ; } ) ;
53+ it ( 'should be function' , ( ) => { expect ( assertDispatchedActions ) . toBeA ( 'function' ) ; } ) ;
5454
5555 it ( 'should throw error if expected action was not dispatched' , ( ) => {
5656 const dispatchedActions = [
@@ -62,8 +62,7 @@ describe('assertions', () => {
6262 { type : '10-0' }
6363 ] ;
6464
65- expect ( assertDispatchedActions )
66- . withArgs ( [ dispatchedActions , expectedActions ] )
65+ expect ( ( ) => { assertDispatchedActions ( dispatchedActions , expectedActions ) ; } )
6766 . toThrow ( ) ;
6867 } ) ;
6968 } ) ;
0 commit comments