File tree Expand file tree Collapse file tree 3 files changed +46
-4
lines changed Expand file tree Collapse file tree 3 files changed +46
-4
lines changed Original file line number Diff line number Diff line change 33 "description" : " Assertions for redux actions testing" ,
44 "scripts" : {
55 "lint" : " eslint src test" ,
6+ "test:index" : " mocha --compilers js:babel-register --reporter spec test/*.js" ,
67 "test:chai" : " mocha --compilers js:babel-register --reporter spec test/chai/*.js" ,
78 "test:expect" : " mocha --compilers js:babel-register --reporter spec test/expect/*.js" ,
89 "test:expectjs" : " mocha --compilers js:babel-register --reporter spec test/expectjs/*.js" ,
910 "test:should" : " mocha --compilers js:babel-register --reporter spec test/should/*.js" ,
10- "test" : " npm run test:chai && npm run test:expect && npm run test:expectjs && npm run test:should" ,
11+ "test" : " npm run test:index && npm run test: chai && npm run test:expect && npm run test:expectjs && npm run test:should" ,
1112 "prepublish" : " rimraf build && babel src --out-dir build --copy-files"
1213 },
1314 "repository" : {
4041 "should" : " ^8.3.2"
4142 },
4243 "dependencies" : {
43- "redux-actions-assertions-js" : " ^1.0 .0"
44+ "redux-actions-assertions-js" : " ^1.1 .0"
4445 }
4546}
Original file line number Diff line number Diff line change 11{
22 "name" : " redux-actions-assertions" ,
3- "version" : " 1.2.0 " ,
3+ "version" : " 1.2.1 " ,
44 "description" : " Assertions for redux actions testing" ,
55 "scripts" : {
66 },
2626 " asserts"
2727 ],
2828 "dependencies" : {
29- "redux-actions-assertions-js" : " ^1.0 .0"
29+ "redux-actions-assertions-js" : " ^1.1 .0"
3030 }
3131}
Original file line number Diff line number Diff line change 1+ import expect from 'expect' ;
2+ import {
3+ registerMiddlewares ,
4+ registerInitialStoreState ,
5+ buildInitialStoreState ,
6+ assertions
7+ } from '../src' ;
8+
9+ describe ( 'index' , ( ) => {
10+ it ( 'should export registerMiddlewares' , ( ) => {
11+ expect ( registerMiddlewares ) . toBeA ( 'function' ) ;
12+ } ) ;
13+
14+ it ( 'should export registerInitialStoreState' , ( ) => {
15+ expect ( registerInitialStoreState ) . toBeA ( 'function' ) ;
16+ } ) ;
17+
18+ it ( 'should export buildInitialStoreState' , ( ) => {
19+ expect ( buildInitialStoreState ) . toBeA ( 'function' ) ;
20+ } ) ;
21+
22+ it ( 'should export assertions' , ( ) => {
23+ expect ( assertions ) . toBeA ( 'object' ) ;
24+ } ) ;
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+ } ) ;
41+ } ) ;
You can’t perform that action at this time.
0 commit comments