From 3b339571610e05f6cf1a68d8e63a2f627fa2cfca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Wed, 7 Jun 2017 05:13:02 +0200 Subject: [PATCH] Fix message reducer tests --- client/src/js/state/__tests__/reducer-messages.test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/js/state/__tests__/reducer-messages.test.js b/client/src/js/state/__tests__/reducer-messages.test.js index 420a22ad..8275773e 100644 --- a/client/src/js/state/__tests__/reducer-messages.test.js +++ b/client/src/js/state/__tests__/reducer-messages.test.js @@ -1,6 +1,7 @@ import { Map, fromJS } from 'immutable'; import reducer, { broadcast } from '../messages'; import * as actions from '../actions'; +import appReducer from '../app'; describe('reducers/messages', () => { it('adds the message on ADD_MESSAGE', () => { @@ -87,10 +88,7 @@ describe('reducers/messages', () => { it('adds messages to the correct tabs when broadcasting', () => { let state = { - environment: Map({ - charWidth: 0, - wrapWidth: 0 - }) + app: appReducer(undefined, { type: '' }) }; const thunk = broadcast('test', 'srv', ['#chan1', '#chan3']);