From 462321e983fcf54af7c1edf61e169045bf48dc01 Mon Sep 17 00:00:00 2001 From: Gina Contrino Date: Wed, 11 Oct 2017 17:46:25 +0200 Subject: [PATCH] Fix broken test --- src/actions/peers.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/actions/peers.test.js b/src/actions/peers.test.js index aae16a77e..2af8f8be3 100644 --- a/src/actions/peers.test.js +++ b/src/actions/peers.test.js @@ -63,13 +63,14 @@ describe('actions: peers', () => { }); it('dispatch activePeerSet with nethash from response when the network is a custom node', () => { - getNetHash.returnsPromise().resolves({ nethash: 'nethash from response' }); + getNetHash.returnsPromise(); const network = { address: 'http://localhost:4000', custom: true, }; activePeerSet({ passphrase, network })(dispatch); + getNetHash.resolves({ nethash: 'nethash from response' }); expect(dispatch).to.have.been.calledWith(match.hasNested('data.activePeer.nethash.nethash', 'nethash from response')); });