diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-09-26 17:01:31 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-09-26 17:23:14 +0900 |
commit | e304581fb15eabb3a973d363a282ee7546561e01 (patch) | |
tree | 1afb21a2dee2ada3d10c1417fa61c0aae1f83077 /test/background/usecases/SettingUseCase.test.ts | |
parent | 11d6d725eee2ac0a1c16e4c7a4ce4f296bb6b016 (diff) |
Do not use chai on unit test
Diffstat (limited to 'test/background/usecases/SettingUseCase.test.ts')
-rw-r--r-- | test/background/usecases/SettingUseCase.test.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/background/usecases/SettingUseCase.test.ts b/test/background/usecases/SettingUseCase.test.ts index 54b6711..af2fb1e 100644 --- a/test/background/usecases/SettingUseCase.test.ts +++ b/test/background/usecases/SettingUseCase.test.ts @@ -7,7 +7,6 @@ import Settings, { DefaultSetting, } from "../../../src/shared/settings/Settings"; import Notifier from "../../../src/background/presenters/Notifier"; -import { expect } from "chai"; import Properties from "../../../src/shared/settings/Properties"; import sinon from "sinon"; @@ -82,7 +81,7 @@ describe("SettingUseCase", () => { .returns(Promise.resolve(settings)); const got = await sut.getCached(); - expect(got.properties.hintchars).to.equal("abcd1234"); + expect(got.properties.hintchars).toEqual("abcd1234"); }); }); @@ -112,7 +111,7 @@ describe("SettingUseCase", () => { await sut.reload(); const current = await cachedSettingRepository.get(); - expect(current.properties.hintchars).to.equal("abcd1234"); + expect(current.properties.hintchars).toEqual("abcd1234"); }); }); @@ -141,7 +140,7 @@ describe("SettingUseCase", () => { await sut.reload(); const current = await cachedSettingRepository.get(); - expect(current.properties.hintchars).to.equal("aaaa1111"); + expect(current.properties.hintchars).toEqual("aaaa1111"); }); }); @@ -157,7 +156,7 @@ describe("SettingUseCase", () => { await sut.reload(); const current = await cachedSettingRepository.get(); - expect(current.properties.hintchars).to.equal( + expect(current.properties.hintchars).toEqual( DefaultSetting.properties.hintchars ); }); |