blob: 68cda05adf91e4c7c60c8e437c2e357166c94a8c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import sinon from "sinon";
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 mock = sinon.mock(zoomPresenter).expects("resetZoom").once();
const sut = new ResetZoomOperator(zoomPresenter);
await sut.run();
mock.verify();
});
});
});
|