aboutsummaryrefslogtreecommitdiff
path: root/test/content/operators/impls/EnableSetMarkOperator.test.ts
blob: 33ce2ba59ffb8a879a774500f9c014c90fad1f4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import EnableSetMarkOperator from "../../../../src/content/operators/impls/EnableSetMarkOperator";
import MockMarkKeyRepository from "../../mock/MockMarkKeyRepository";

describe("EnableSetMarkOperator", () => {
  describe("#run", () => {
    it("starts mark set mode", async () => {
      const repository = new MockMarkKeyRepository({
        jumpMode: false,
        setMode: false,
      });
      const sut = new EnableSetMarkOperator(repository);

      await sut.run();

      expect(repository.setMode).toBeTruthy;
    });
  });
});