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

Commit 95fc2ab

Browse files
authored
upgrade fusion-rpc-redux and fix test regression (#184)
1 parent 7dcd978 commit 95fc2ab

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"fusion-plugin-rpc": "^2.3.0",
27-
"fusion-rpc-redux": "^1.3.0",
27+
"fusion-rpc-redux": "^1.4.0",
2828
"prop-types": "^15.6.1"
2929
},
3030
"peerDependencies": {

src/__tests__/index.browser.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ test('browser plugin integration test withRPCRedux - failure', async t => {
179179
const app = new App(element);
180180
app.register(Plugin);
181181
app.register(FetchToken, fetch);
182-
await getSimulator(app).render('/');
182+
await getSimulator(app)
183+
.render('/')
184+
.catch(e => t.equal(e.message, 'message'));
183185
t.equal(expectedActions.length, 0, 'dispatches all actions');
184186
teardown();
185187
t.end();
@@ -304,7 +306,9 @@ test('browser mock integration test withRPCRedux - failure', async t => {
304306
const app = new App(element);
305307
app.register(RPCPluginMock);
306308
app.register(RPCHandlersToken, handlers);
307-
await getSimulator(app).render('/');
309+
await getSimulator(app)
310+
.render('/')
311+
.catch(e => t.equal(e.message, 'message'));
308312
t.equal(expectedActions.length, 0, 'dispatches all actions');
309313
teardown();
310314
t.end();
@@ -582,7 +586,9 @@ test('browser plugin integration test withRPCReactor - failure', async t => {
582586
const app = new App(element);
583587
app.register(RPCPluginMock);
584588
app.register(RPCHandlersToken, handlers);
585-
await getSimulator(app).render('/');
589+
await getSimulator(app)
590+
.render('/')
591+
.catch(e => t.equal(e.message, 'Some failure'));
586592
t.equal(expectedActions.length, 0, 'dispatches all actions');
587593
t.equal(flags.start, true, 'dispatches start action');
588594
t.equal(flags.failure, true, 'dispatches failure action');
@@ -695,7 +701,9 @@ test('browser plugin integration test withRPCReactor - failure 2', async t => {
695701
const app = new App(element);
696702
app.register(Plugin);
697703
app.register(FetchToken, fetch);
698-
await getSimulator(app).render('/');
704+
await getSimulator(app)
705+
.render('/')
706+
.catch(e => t.equal(e.message, 'Some failure'));
699707
t.equal(expectedActions.length, 0, 'dispatches all actions');
700708
t.equal(flags.start, true, 'dispatches start action');
701709
t.equal(flags.failure, true, 'dispatches failure action');

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2643,10 +2643,10 @@ fusion-react@^1.3.7:
26432643
prop-types "^15.6.2"
26442644
react-is "^16.7.0"
26452645

2646-
fusion-rpc-redux@^1.3.0:
2647-
version "1.3.0"
2648-
resolved "https://registry.yarnpkg.com/fusion-rpc-redux/-/fusion-rpc-redux-1.3.0.tgz#55337c0724c6a22c31ce8e9281cc19c112aa77db"
2649-
integrity sha512-XaVnlVDNNqo2kvYQMml0KoELThxI4WBVTinC7jMAM8VCk8aa38PNAIlb3zszaknI/KoQ352Ulu4QLKJEv/baBQ==
2646+
fusion-rpc-redux@^1.4.0:
2647+
version "1.4.0"
2648+
resolved "https://registry.yarnpkg.com/fusion-rpc-redux/-/fusion-rpc-redux-1.4.0.tgz#0a88146988eff245852d7cec45fbbf0a89540636"
2649+
integrity sha512-Pfzd12sDdeWbMNvyP+F5F6cWYZKcoggHuIXgac9j+8uyxJ0iMB4AiHQazqBAJS6mzvbTCpR2FRPRhNz6u+MzCA==
26502650
dependencies:
26512651
redux-reactors "^1.0.3"
26522652

0 commit comments

Comments
 (0)