blob: 31657072e964512c0bb1b67b8e8dab2bb60fa3ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import ZoomOutOperator from "../../../../src/background/operators/impls/ZoomOutOperator";
import MockZoomPresenter from "../../mock/MockZoomPresenter";
describe("ZoomOutOperator", () => {
describe("#run", () => {
it("zoom-in the current tab", async () => {
const zoomPresenter = new MockZoomPresenter();
const zoomOutSpy = jest
.spyOn(zoomPresenter, "zoomOut")
.mockReturnValue(Promise.resolve());
const sut = new ZoomOutOperator(zoomPresenter);
await sut.run();
expect(zoomOutSpy).toBeCalled();
});
});
});
|