From 6ca729a6c2e8104fad92dc218edb0a60c48a1f5a Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Wed, 4 May 2016 17:35:55 +0200 Subject: [PATCH] Fix tests by not mocking dependent utils --- .../app/scripts/reducers/__tests__/root-test.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/client/app/scripts/reducers/__tests__/root-test.js b/client/app/scripts/reducers/__tests__/root-test.js index 506d17d8a..cfde7428e 100644 --- a/client/app/scripts/reducers/__tests__/root-test.js +++ b/client/app/scripts/reducers/__tests__/root-test.js @@ -1,4 +1,6 @@ jest.dontMock('../../utils/router-utils'); +jest.dontMock('../../utils/search-utils'); +jest.dontMock('../../utils/string-utils'); jest.dontMock('../../utils/topology-utils'); jest.dontMock('../../constants/action-types'); jest.dontMock('../root'); @@ -27,7 +29,12 @@ describe('RootReducer', () => { adjacency: ['n1', 'n2'], pseudo: undefined, label: undefined, - label_minor: undefined + label_minor: undefined, + filtered: false, + metrics: undefined, + node_count: undefined, + shape: undefined, + stack: undefined }, n2: { id: 'n2', @@ -35,7 +42,12 @@ describe('RootReducer', () => { adjacency: undefined, pseudo: undefined, label: undefined, - label_minor: undefined + label_minor: undefined, + filtered: false, + metrics: undefined, + node_count: undefined, + shape: undefined, + stack: undefined } };