aboutsummaryrefslogtreecommitdiff
path: root/test/content/operators/impls/EnableSetMarkOperator.test.ts
blob: b28874d62622680ee875f2ffa14dc7021695cc77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { expect } from "chai";
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).to.be.true;
    });
  });
});