diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-04-13 20:37:36 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-04-13 20:37:36 +0900 |
commit | e1dac618a8b8929f601c7ec8aca3842c5ebf9d03 (patch) | |
tree | 6a914a8243c8c02e7752a83667a54d3fa832955c /test/settings/reducers/setting.test.ts | |
parent | 685f2b7b69218b06b5bb676069e35f79c5048c9b (diff) |
Use plugin:prettier/recommended
Diffstat (limited to 'test/settings/reducers/setting.test.ts')
-rw-r--r-- | test/settings/reducers/setting.test.ts | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/test/settings/reducers/setting.test.ts b/test/settings/reducers/setting.test.ts index 60df061..bb5cfa5 100644 --- a/test/settings/reducers/setting.test.ts +++ b/test/settings/reducers/setting.test.ts @@ -1,54 +1,54 @@ -import * as actions from 'settings/actions'; -import settingReducer from 'settings/reducers/setting'; +import * as actions from "settings/actions"; +import settingReducer from "settings/reducers/setting"; describe("settings setting reducer", () => { - it('return the initial state', () => { + it("return the initial state", () => { const state = settingReducer(undefined, {}); - expect(state).to.have.deep.property('source', 'json'); - expect(state).to.have.deep.property('error', ''); + expect(state).to.have.deep.property("source", "json"); + expect(state).to.have.deep.property("error", ""); }); - it('return next state for SETTING_SET_SETTINGS', () => { + it("return next state for SETTING_SET_SETTINGS", () => { const action = { type: actions.SETTING_SET_SETTINGS, - source: 'json', + source: "json", json: '{ "key": "value" }', form: {}, }; const state = settingReducer(undefined, action); - expect(state).to.have.deep.property('source', 'json'); - expect(state).to.have.deep.property('json', '{ "key": "value" }'); - expect(state).to.have.deep.property('form', {}); + expect(state).to.have.deep.property("source", "json"); + expect(state).to.have.deep.property("json", '{ "key": "value" }'); + expect(state).to.have.deep.property("form", {}); }); - it('return next state for SETTING_SHOW_ERROR', () => { + it("return next state for SETTING_SHOW_ERROR", () => { const action = { type: actions.SETTING_SHOW_ERROR, - error: 'bad value', - json: '{}', + error: "bad value", + json: "{}", }; const state = settingReducer(undefined, action); - expect(state).to.have.deep.property('error', 'bad value'); - expect(state).to.have.deep.property('json', '{}'); + expect(state).to.have.deep.property("error", "bad value"); + expect(state).to.have.deep.property("json", "{}"); }); - it('return next state for SETTING_SWITCH_TO_FORM', () => { + it("return next state for SETTING_SWITCH_TO_FORM", () => { const action = { type: actions.SETTING_SWITCH_TO_FORM, form: {}, }; const state = settingReducer(undefined, action); - expect(state).to.have.deep.property('form', {}); - expect(state).to.have.deep.property('source', 'form'); + expect(state).to.have.deep.property("form", {}); + expect(state).to.have.deep.property("source", "form"); }); - it('return next state for SETTING_SWITCH_TO_JSON', () => { + it("return next state for SETTING_SWITCH_TO_JSON", () => { const action = { type: actions.SETTING_SWITCH_TO_JSON, - json: '{}', + json: "{}", }; const state = settingReducer(undefined, action); - expect(state).to.have.deep.property('json', '{}'); - expect(state).to.have.deep.property('source', 'json'); + expect(state).to.have.deep.property("json", "{}"); + expect(state).to.have.deep.property("source", "json"); }); }); |