aboutsummaryrefslogtreecommitdiff
path: root/test/content/repositories/MarkRepository.test.ts
blob: b4486a10d2d942c4956f64c993ee528f4b8a7605 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { MarkRepositoryImpl } from "../../../src/content/repositories/MarkRepository";

describe("MarkRepositoryImpl", () => {
  it("save and load marks", () => {
    const sut = new MarkRepositoryImpl();

    sut.set("a", { x: 10, y: 20 });
    expect(sut.get("a")).toEqual({ x: 10, y: 20 });
    expect(sut.get("b")).toBeNull;
  });
});