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