Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.

Commit 66a3f2e

Browse files
ganemonefusion-bot[bot]
authored and
fusion-bot[bot]
committed
Add mock re-export from fusion-plugin-rpc
#18
1 parent 2948e88 commit 66a3f2e

File tree

4 files changed

+344
-69
lines changed

4 files changed

+344
-69
lines changed

package.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,33 @@
2424
"./dist/browser.es2015.es.js": "./dist/browser.es2017.es.js"
2525
},
2626
"dependencies": {
27-
"fusion-plugin-rpc": "^0.3.1",
28-
"fusion-rpc-redux": "^0.3.1"
27+
"fusion-plugin-rpc": "^0.3.4",
28+
"fusion-rpc-redux": "^0.3.3"
2929
},
3030
"peerDependencies": {
31-
"fusion-react": "^0.1.9",
31+
"fusion-react": "^0.1.10",
3232
"prop-types": "^15.6.0",
3333
"react": "14.x - 16.x"
3434
},
3535
"devDependencies": {
36-
"babel-eslint": "^8.0.2",
36+
"babel-eslint": "^8.0.3",
3737
"babel-plugin-transform-flow-strip-types": "^6.22.0",
3838
"create-universal-package": "^2.1.1",
39-
"eslint": "^4.11.0",
39+
"eslint": "^4.12.1",
4040
"eslint-config-fusion": "^0.1.2",
4141
"eslint-plugin-cup": "^1.0.0",
4242
"eslint-plugin-flowtype": "^2.39.1",
4343
"eslint-plugin-prettier": "^2.3.1",
44-
"eslint-plugin-react": "^7.4.0",
45-
"flow-bin": "^0.59.0",
46-
"fusion-core": "^0.2.3",
47-
"fusion-react": "^0.1.9",
44+
"eslint-plugin-react": "^7.5.1",
45+
"flow-bin": "^0.60.1",
46+
"fusion-core": "^0.2.5",
47+
"fusion-react": "^0.1.10",
4848
"fusion-react-async": "0.1.4",
49+
"nyc": "^11.3.0",
4950
"prettier": "1.8.2",
50-
"react": "^16.1.1",
51-
"react-dom": "16.1.1",
52-
"react-test-renderer": "^16.1.1",
51+
"react": "^16.2.0",
52+
"react-dom": "16.2.0",
53+
"react-test-renderer": "^16.2.0",
5354
"tape-cup": "^4.7.1",
5455
"unitest": "^1.1.0"
5556
},
@@ -60,6 +61,7 @@
6061
"build-test": "rm -rf dist-tests && cup build-tests",
6162
"just-test": "node_modules/.bin/unitest --browser=dist-tests/browser.js --node=dist-tests/node.js",
6263
"test": "npm run build-test && npm run just-test",
64+
"cover": "npm run build-test && nyc npm run just-test",
6365
"prepublish": "npm run transpile"
6466
},
6567
"engines": {

src/__tests__/interface.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import tape from 'tape-cup';
2+
import Plugin, {
3+
createRPCReducer,
4+
mock,
5+
withRPCRedux,
6+
withRPCReactor,
7+
} from '../index';
8+
9+
tape('interface', t => {
10+
t.equal(typeof Plugin, 'function', 'default export function');
11+
t.equal(
12+
typeof createRPCReducer,
13+
'function',
14+
'createRPCReducer function export'
15+
);
16+
t.equal(typeof mock, 'function', 'mock function export');
17+
t.equal(typeof withRPCRedux, 'function', 'withRPCRedux function export');
18+
t.equal(typeof withRPCReactor, 'function', 'withRPCReactor function export');
19+
t.end();
20+
});

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import plugin from './plugin';
22
export {createRPCReducer} from 'fusion-rpc-redux';
3+
export {mock} from 'fusion-plugin-rpc';
34
export {withRPCRedux, withRPCReactor} from './hoc';
45

56
export default plugin;

0 commit comments

Comments
 (0)