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