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