aboutsummaryrefslogtreecommitdiff
path: root/test/content/operators/impls/EnableJumpMarkOperator.test.ts
blob: 66b4ecd23a4cea44b6021988049c1ceb077439d9 (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 EnableJumpMarkOperator from "../../../../src/content/operators/impls/EnableJumpMarkOperator";
import MockMarkKeyRepository from "../../mock/MockMarkKeyRepository";

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

      await sut.run();

      expect(repository.jumpMode).to.be.true;
    });
  });
});