separate settings

This commit is contained in:
Shin'ya Ueoka 2017-10-08 14:44:21 +09:00
parent 541449b1fc
commit 58123210ab
13 changed files with 17 additions and 34 deletions

View file

@ -1,22 +0,0 @@
import { expect } from "chai";
import actions from 'actions';
import settingReducer from 'reducers/setting';
describe("setting reducer", () => {
it('return the initial state', () => {
let state = settingReducer(undefined, {});
expect(state).to.have.deep.property('settings', {});
});
it('return next state for SETTING_SET_SETTINGS', () => {
let action = {
type: actions.SETTING_SET_SETTINGS,
settings: { value1: 'hello', value2: 'world' },
};
let state = settingReducer(undefined, action);
expect(state).to.have.deep.property('settings', {
value1: 'hello',
value2: 'world',
});
});
});