Skip to content

Commit be8f710

Browse files
authored
Merge pull request #17 from redux-things/extract-js
Extract assertions implementation and pure javascript part to separate project.
2 parents 3c1967e + aa6fc77 commit be8f710

39 files changed

+16
-844
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Assertions for redux actions testing.
44
This library adds assertions for [redux actions](http://redux.js.org/docs/advanced/AsyncActions.html) testing.
55
It use [redux-mock-store](https://github.com/arnaudbenard/redux-mock-store) to mock redux store.
66

7-
[![build status](https://img.shields.io/travis/dmitry-zaets/redux-actions-assertions/master.svg?style=flat-square)](https://travis-ci.org/dmitry-zaets/redux-actions-assertions)
7+
[![build status](https://img.shields.io/travis/dmitry-zaets/redux-actions-assertions/master.svg?style=flat-square)](https://travis-ci.org/redux-things/redux-actions-assertions)
88
[![npm version](https://img.shields.io/npm/v/redux-actions-assertions.svg?style=flat-square)](https://www.npmjs.com/package/redux-actions-assertions)
99

1010
## Supported Assertion Frameworks/Libraries:

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Assertions for redux actions testing.
44
This library adds assertions for [redux actions](http://redux.js.org/docs/advanced/AsyncActions.html) testing.
55
It use [redux-mock-store](https://github.com/arnaudbenard/redux-mock-store) to mock redux store.
66

7-
[![build status](https://img.shields.io/travis/dmitry-zaets/redux-actions-assertions/master.svg?style=flat-square)](https://travis-ci.org/dmitry-zaets/redux-actions-assertions)
7+
[![build status](https://img.shields.io/travis/dmitry-zaets/redux-actions-assertions/master.svg?style=flat-square)](https://travis-ci.org/redux-things/redux-actions-assertions)
88
[![npm version](https://img.shields.io/npm/v/redux-actions-assertions.svg?style=flat-square)](https://www.npmjs.com/package/redux-actions-assertions)
99

1010
## Supported Assertion Frameworks/Libraries:

docs/javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ For plain javascript assertions you don't need to register anything. Just import
66

77
```js
88
// using ES6 modules
9-
import assertions from 'redux-actions-assertions/assertions';
9+
import assertions from 'redux-actions-assertions';
1010

1111
// using CommonJS modules
12-
var assertions = require('redux-actions-assertions/assertions');
12+
var assertions = require('redux-actions-assertions');
1313

1414
// in test
1515
assertions.toDispatchActions(/**/)

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
"description": "Assertions for redux actions testing",
44
"scripts": {
55
"lint": "eslint src test",
6-
"test:general": "mocha --compilers js:babel-register --reporter spec test/general/*.js test/assertions/*.js test/asserts/**/*.js",
76
"test:chai": "mocha --compilers js:babel-register --reporter spec test/chai/*.js",
87
"test:expect": "mocha --compilers js:babel-register --reporter spec test/expect/*.js",
98
"test:expectjs": "mocha --compilers js:babel-register --reporter spec test/expectjs/*.js",
109
"test:should": "mocha --compilers js:babel-register --reporter spec test/should/*.js",
11-
"test": "npm run test:general && npm run test:chai && npm run test:expect && npm run test:expectjs && npm run test:should",
12-
"prepublish": "rimraf lib && babel src --out-dir build --copy-files"
10+
"test": "npm run test:chai && npm run test:expect && npm run test:expectjs && npm run test:should",
11+
"prepublish": "rimraf build && babel src --out-dir build --copy-files"
1312
},
1413
"repository": {
1514
"type": "git",
@@ -41,9 +40,6 @@
4140
"should": "^8.3.2"
4241
},
4342
"dependencies": {
44-
"lodash.findindex": "^4.4.0",
45-
"lodash.flattendeep": "^4.2.0",
46-
"redux": "^3.5.2",
47-
"redux-mock-store": "^1.0.2"
43+
"redux-actions-assertions-js": "^0.0.1"
4844
}
4945
}

src/assertions.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/asserts/errors/dispatchedActionError.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/asserts/errors/notDispatchedActionError.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/asserts/toDispatchActions.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/asserts/toDispatchActionsWithState.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/asserts/toNotDispatchActions.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)