aboutsummaryrefslogtreecommitdiff
path: root/test/content/operators/impls/ClipboardOperatorFactoryChain.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/content/operators/impls/ClipboardOperatorFactoryChain.test.ts
parent11d6d725eee2ac0a1c16e4c7a4ce4f296bb6b016 (diff)
Do not use chai on unit test
Diffstat (limited to 'test/content/operators/impls/ClipboardOperatorFactoryChain.test.ts')
-rw-r--r--test/content/operators/impls/ClipboardOperatorFactoryChain.test.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/content/operators/impls/ClipboardOperatorFactoryChain.test.ts b/test/content/operators/impls/ClipboardOperatorFactoryChain.test.ts
index 9ddc229..d4c61c4 100644
--- a/test/content/operators/impls/ClipboardOperatorFactoryChain.test.ts
+++ b/test/content/operators/impls/ClipboardOperatorFactoryChain.test.ts
@@ -1,5 +1,4 @@
import * as operations from "../../../../src/shared/operations";
-import { expect } from "chai";
import ClipboardOperatorFactoryChain from "../../../../src/content/operators/impls/ClipboardOperatorFactoryChain";
import YankURLOperator from "../../../../src/content/operators/impls/YankURLOperator";
import PasteOperator from "../../../../src/content/operators/impls/PasteOperator";
@@ -19,13 +18,13 @@ describe("ClipboardOperatorFactoryChain", () => {
new MockSettingRepository(),
new MockURLRepository()
);
- expect(sut.create({ type: operations.URLS_YANK }, 0)).to.be.instanceOf(
+ expect(sut.create({ type: operations.URLS_YANK }, 0)).toBeInstanceOf(
YankURLOperator
);
expect(
sut.create({ type: operations.URLS_PASTE, newTab: false }, 0)
- ).to.be.instanceOf(PasteOperator);
- expect(sut.create({ type: operations.SCROLL_TOP }, 0)).to.be.null;
+ ).toBeInstanceOf(PasteOperator);
+ expect(sut.create({ type: operations.SCROLL_TOP }, 0)).toBeNull;
});
});
});