Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f16cb94

Browse files
committed
Add tests for negativeCompare
1 parent 8b908f8 commit f16cb94

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

‎test/jasmine/index.js‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /