blob: 0c98c8d8e0662096754a52bf918b623c877e43c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { expect } from "chai";
import ScrollToEndOperator from "../../../../src/content/operators/impls/ScrollToEndOperator";
import MockScrollPresenter from "../../mock/MockScrollPresenter";
import MockSettingRepository from "../../mock/MockSettingRepository";
describe("ScrollToEndOperator", () => {
describe("#run", () => {
it("scroll to rightmost", async () => {
const presenter = new MockScrollPresenter();
const settingRepository = new MockSettingRepository();
const sut = new ScrollToEndOperator(presenter, settingRepository);
await sut.run();
expect(presenter.getScroll()).to.deep.equal({ x: Infinity, y: 0 });
});
});
});
|