aboutsummaryrefslogtreecommitdiff
path: root/test/background/operators/impls/NavigateOperatorFactoryChain.test.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-09-26 17:01:31 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-09-26 17:23:14 +0900
commite304581fb15eabb3a973d363a282ee7546561e01 (patch)
tree1afb21a2dee2ada3d10c1417fa61c0aae1f83077 /test/background/operators/impls/NavigateOperatorFactoryChain.test.ts
parent11d6d725eee2ac0a1c16e4c7a4ce4f296bb6b016 (diff)
Do not use chai on unit test
Diffstat (limited to 'test/background/operators/impls/NavigateOperatorFactoryChain.test.ts')
-rw-r--r--test/background/operators/impls/NavigateOperatorFactoryChain.test.ts19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/background/operators/impls/NavigateOperatorFactoryChain.test.ts b/test/background/operators/impls/NavigateOperatorFactoryChain.test.ts
index dfb5654..ae556f0 100644
--- a/test/background/operators/impls/NavigateOperatorFactoryChain.test.ts
+++ b/test/background/operators/impls/NavigateOperatorFactoryChain.test.ts
@@ -1,5 +1,4 @@
import "reflect-metadata";
-import { expect } from "chai";
import NavigateOperatorFactoryChain from "../../../../src/background/operators/impls/NavigateOperatorFactoryChain";
import MockTabPresenter from "../../mock/MockTabPresenter";
import MockNavigateClient from "../../mock/MockNavigateClient";
@@ -28,29 +27,29 @@ describe("NavigateOperatorFactoryChain", () => {
expect(
sut.create({ type: operations.NAVIGATE_HISTORY_PREV })
- ).to.be.instanceOf(NavigateHistoryPrevOperator);
+ ).toBeInstanceOf(NavigateHistoryPrevOperator);
expect(
sut.create({ type: operations.NAVIGATE_HISTORY_NEXT })
- ).to.be.instanceOf(NavigateHistoryNextOperator);
+ ).toBeInstanceOf(NavigateHistoryNextOperator);
expect(
sut.create({ type: operations.NAVIGATE_LINK_PREV })
- ).to.be.instanceOf(NavigateLinkPrevOperator);
+ ).toBeInstanceOf(NavigateLinkPrevOperator);
expect(
sut.create({ type: operations.NAVIGATE_LINK_NEXT })
- ).to.be.instanceOf(NavigateLinkNextOperator);
- expect(sut.create({ type: operations.NAVIGATE_PARENT })).to.be.instanceOf(
+ ).toBeInstanceOf(NavigateLinkNextOperator);
+ expect(sut.create({ type: operations.NAVIGATE_PARENT })).toBeInstanceOf(
NavigateParentOperator
);
- expect(sut.create({ type: operations.NAVIGATE_ROOT })).to.be.instanceOf(
+ expect(sut.create({ type: operations.NAVIGATE_ROOT })).toBeInstanceOf(
NavigateRootOperator
);
- expect(sut.create({ type: operations.PAGE_SOURCE })).to.be.instanceOf(
+ expect(sut.create({ type: operations.PAGE_SOURCE })).toBeInstanceOf(
OpenSourceOperator
);
expect(
sut.create({ type: operations.PAGE_HOME, newTab: false })
- ).to.be.instanceOf(OpenHomeOperator);
- expect(sut.create({ type: operations.CANCEL })).to.be.null;
+ ).toBeInstanceOf(OpenHomeOperator);
+ expect(sut.create({ type: operations.CANCEL })).toBeNull;
});
});
});