Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gina Contrino committed Oct 11, 2017
1 parent 23e6a71 commit 462321e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions/peers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
});
Expand Down

0 comments on commit 462321e

Please sign in to comment.