From 0b98a22eba4f7bbac215abd800293ac2be67b24d Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 11 Aug 2020 21:40:23 +0900 Subject: Enable @typescript-eslint/no-extra-non-null-assertion --- test/settings/reducers/setting.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/settings/reducers') 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); }); }); -- cgit v1.2.3