From ab9ffa77728e551e8137489e4bd0664e30d11fed Mon Sep 17 00:00:00 2001 From: Vit Stanislav Date: Tue, 20 Feb 2018 09:49:04 +0100 Subject: [PATCH] Fix broken unit test --- src/store/middlewares/offline.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/middlewares/offline.test.js b/src/store/middlewares/offline.test.js index ca5f33a67c..7625bdd7be 100644 --- a/src/store/middlewares/offline.test.js +++ b/src/store/middlewares/offline.test.js @@ -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', })); }); @@ -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,