File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -55,4 +55,24 @@ describe('jasmine', () => {
5555 . toNotDispatchActions ( actions . anotherParentExpectedActions , done ) ;
5656 } ) ;
5757 } ) ;
58+
59+ describe ( '.not.toDispatchActions' , ( ) => {
60+ it ( 'should accept single action' , ( done ) => {
61+ expect ( actions . start ( ) ) . not . toDispatchActions ( actions . anotherStart ( ) , done ) ;
62+ } ) ;
63+
64+ it ( 'should accept array with one action' , ( done ) => {
65+ expect ( actions . start ( ) ) . not . toDispatchActions ( [ actions . anotherStart ( ) ] , done ) ;
66+ } ) ;
67+
68+ it ( 'should accept array with multiple actions' , ( done ) => {
69+ expect ( actions . asyncActionCreator ( ) )
70+ . not . toDispatchActions ( actions . anotherExpectedActions , done ) ;
71+ } ) ;
72+
73+ it ( 'should accept array with nested async action creators' , ( done ) => {
74+ expect ( actions . parentAsyncActionCreator ( ) )
75+ . not . toDispatchActions ( actions . anotherParentExpectedActions , done ) ;
76+ } ) ;
77+ } ) ;
5878} ) ;
You can’t perform that action at this time.
0 commit comments