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

describe("FindNextOperator", () => {
  describe("#run", () => {
    it("find next keyword", async () => {
      const client = new MockFindMasterClient();
      const mock = sinon.mock(client).expects("findNext").exactly(3);
      const sut = new FindNextOperator(client, 3);

      await sut.run();

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