blob: 304d914fac2135b8223f954a7d065e0827506fe5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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()).toEqual({ x: Infinity, y: 0 });
});
});
});
|