aboutsummaryrefslogtreecommitdiff
path: root/test/reducers/setting.test.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-08 14:44:21 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-08 14:44:21 +0900
commit58123210ab4cdd4a1f2b4720a0abbd88908baa06 (patch)
treeb841120a6347313e34ba4a5ddbfd599e08aa6f16 /test/reducers/setting.test.js
parent541449b1fced9eea15f415b023206b10724f5315 (diff)
separate settings
Diffstat (limited to 'test/reducers/setting.test.js')
-rw-r--r--test/reducers/setting.test.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/reducers/setting.test.js b/test/reducers/setting.test.js
deleted file mode 100644
index 1af031a..0000000
--- a/test/reducers/setting.test.js
+++ /dev/null
@@ -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',
- });
- });
-});