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 46ee91b

Browse files
Merge pull request #26 from redux-things/update-version
Update dependency. Bump version.
2 parents 32eb182 + af054f4 commit 46ee91b

File tree

3 files changed

+46
-4
lines changed

3 files changed

+46
-4
lines changed

‎package.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
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": {
@@ -40,6 +41,6 @@
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
}

‎src/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
},
@@ -26,6 +26,6 @@
2626
"asserts"
2727
],
2828
"dependencies": {
29-
"redux-actions-assertions-js": "^1.0.0"
29+
"redux-actions-assertions-js": "^1.1.0"
3030
}
3131
}

‎test/index.js‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
});

0 commit comments

Comments
(0)

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