File tree Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " redux-actions-assertions-js" ,
33 "description" : " Javascript assertions for redux actions testing" ,
4- "version" : " 1.0 .0" ,
4+ "version" : " 1.1 .0" ,
55 "main" : " lib/index.js" ,
66 "files" : [
77 " lib"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { toDispatchActionsWithState } from './asserts/toDispatchActionsWithState
33import { toNotDispatchActions } from './asserts/toNotDispatchActions' ;
44import { toNotDispatchActionsWithState } from './asserts/toNotDispatchActionsWithState' ;
55
6- export default {
6+ export const assertions = {
77 toDispatchActions,
88 toDispatchActionsWithState,
99 toNotDispatchActions,
Original file line number Diff line number Diff line change 11import { registerMiddlewares } from './mockStore' ;
22import { registerInitialStoreState , buildInitialStoreState } from './initialState' ;
3- import assertions from './assertions' ;
3+ import { assertions } from './assertions' ;
44
55export {
66 registerMiddlewares ,
Original file line number Diff line number Diff line change 11import expect from 'expect' ;
2- import assertions from '../../src/assertions' ;
2+ import { assertions } from '../../src/assertions' ;
33
44describe ( 'assertions' , ( ) => {
55 it ( 'should export toDispatchActions' , ( ) => {
Original file line number Diff line number Diff line change @@ -22,4 +22,20 @@ describe('index', () => {
2222 it ( 'should export assertions' , ( ) => {
2323 expect ( assertions ) . toBeA ( 'object' ) ;
2424 } ) ;
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+ } ) ;
2541} ) ;
You can’t perform that action at this time.
0 commit comments