Skip to content

Commit

Permalink
Fix broken unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Feb 20, 2018
1 parent 56f02a1 commit ab9ffa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/middlewares/offline.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('Offline middleware', () => {

middleware(store)(next)(action);
expect(store.dispatch).to.have.been.calledWith(errorToastDisplayed({
label: `Failed to connect to node ${peers.data.currentPeer}:${peers.data.port}`,
label: 'Failed to connect to node',
}));
});

Expand All @@ -74,7 +74,7 @@ describe('Offline middleware', () => {
code: 'EPARSE',
};

const expectedResult = `Failed to connect to node ${peers.data.currentPeer}:${peers.data.port} Make sure that you are using the latest version of Lisk Hub.`;
const expectedResult = 'Failed to connect to node Make sure that you are using the latest version of Lisk Hub.';
middleware(store)(next)(action);
expect(store.dispatch).to.have.been.calledWith(errorToastDisplayed({
label: expectedResult,
Expand Down

0 comments on commit ab9ffa7

Please sign in to comment.