aboutsummaryrefslogtreecommitdiff
path: root/test/content/operators/impls/VerticalScrollOperator.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/VerticalScrollOperator.test.ts
parent11d6d725eee2ac0a1c16e4c7a4ce4f296bb6b016 (diff)
Do not use chai on unit test
Diffstat (limited to 'test/content/operators/impls/VerticalScrollOperator.test.ts')
-rw-r--r--test/content/operators/impls/VerticalScrollOperator.test.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/content/operators/impls/VerticalScrollOperator.test.ts b/test/content/operators/impls/VerticalScrollOperator.test.ts
index 05b15d2..1b87060 100644
--- a/test/content/operators/impls/VerticalScrollOperator.test.ts
+++ b/test/content/operators/impls/VerticalScrollOperator.test.ts
@@ -1,4 +1,3 @@
-import { expect } from "chai";
import VerticalScrollOperator from "../../../../src/content/operators/impls/VerticalScrollOperator";
import MockScrollPresenter from "../../mock/MockScrollPresenter";
import MockSettingRepository from "../../mock/MockSettingRepository";
@@ -12,7 +11,7 @@ describe("VerticalScrollOperator", () => {
await sut.run();
- expect(presenter.getScroll()).to.deep.equal({ x: 0, y: 1 });
+ expect(presenter.getScroll()).toEqual({ x: 0, y: 1 });
});
it("scroll vertically with repeats", async () => {
@@ -22,7 +21,7 @@ describe("VerticalScrollOperator", () => {
await sut.run();
- expect(presenter.getScroll()).to.deep.equal({ x: 0, y: 5 });
+ expect(presenter.getScroll()).toEqual({ x: 0, y: 5 });
});
});
});