aboutsummaryrefslogtreecommitdiff
path: root/test/content/repositories/FindRepository.test.ts
blob: e0abb9dadcdacb93eeba16b8cea8ab80f79a976d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { FindRepositoryImpl } from "../../../src/content/repositories/FindRepository";
import { expect } from "chai";

describe("FindRepositoryImpl", () => {
  it("updates and gets last keyword", () => {
    const sut = new FindRepositoryImpl();

    expect(sut.getLastKeyword()).to.be.null;

    sut.setLastKeyword("monkey");

    expect(sut.getLastKeyword()).to.equal("monkey");
  });
});