aboutsummaryrefslogtreecommitdiff
path: root/test/background/operators/impls/ZoomInOperator.test.ts
blob: 097e760837f740b7338e57b6780c214039e136e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import sinon from "sinon";
import ZoomInOperator from "../../../../src/background/operators/impls/ZoomInOperator";
import MockZoomPresenter from "../../mock/MockZoomPresenter";

describe("ZoomInOperator", () => {
  describe("#run", () => {
    it("zoom-out the current tab", async () => {
      const zoomPresenter = new MockZoomPresenter();
      const mock = sinon.mock(zoomPresenter).expects("zoomIn").once();

      const sut = new ZoomInOperator(zoomPresenter);
      await sut.run();

      mock.verify();
    });
  });
});