aboutsummaryrefslogtreecommitdiff
path: root/test/settings/reducers
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-08-12 21:01:02 +0900
committerGitHub <noreply@github.com>2020-08-12 21:01:02 +0900
commitbf6762f0c0c47a20b6a3e722711fafc6611793a9 (patch)
tree67bfdcee88c8fb2bc19277e58684dcf5d2d03be4 /test/settings/reducers
parent6f7f501c699c53eb63ce5576cf2464ecf4cfe162 (diff)
parent7e8c99d43a402b9e025a710a00879d557ac5b071 (diff)
Merge pull request #798 from ueokande/eslint
Improve eslint
Diffstat (limited to 'test/settings/reducers')
-rw-r--r--test/settings/reducers/setting.test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/settings/reducers/setting.test.ts b/test/settings/reducers/setting.test.ts
index 99c4c80..34e76e2 100644
--- a/test/settings/reducers/setting.test.ts
+++ b/test/settings/reducers/setting.test.ts
@@ -24,7 +24,7 @@ describe("settings setting reducer", () => {
};
const state = settingReducer(undefined, action);
expect(state.source).to.equal("json");
- expect(state.json!!.toJSONText()).to.equal('{ "key": "value" }');
+ expect(state.json!.toJSONText()).to.equal('{ "key": "value" }');
expect(state.form).to.deep.equal(action.form);
});
@@ -36,7 +36,7 @@ describe("settings setting reducer", () => {
};
const state = settingReducer(undefined, action);
expect(state.error).to.equal("bad value");
- expect(state.json!!.toJSONText()).to.equal("{}");
+ expect(state.json!.toJSONText()).to.equal("{}");
});
it("return next state for SETTING_SWITCH_TO_FORM", () => {
@@ -55,7 +55,7 @@ describe("settings setting reducer", () => {
json: JSONTextSettings.fromText("{}"),
};
const state = settingReducer(undefined, action);
- expect(state.json!!.toJSONText()).to.equal("{}");
+ expect(state.json!.toJSONText()).to.equal("{}");
expect(state.source).to.equal(SettingSource.JSON);
});
});