blob: a722a9cd200523f7eb0e8da135322d5fa9cb4f13 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import MarkRepository, {
MarkKeyRepositoryImpl,
} from "../../../src/content/repositories/MarkKeyRepository";
describe("MarkKeyRepositoryImpl", () => {
let sut: MarkRepository;
beforeEach(() => {
sut = new MarkKeyRepositoryImpl();
});
describe("#isSetMode/#enableSetMode/#disabeSetMode", () => {
it("enables and disables set mode", () => {
expect(sut.isSetMode()).toBeFalsy;
sut.enableSetMode();
expect(sut.isSetMode()).toBeTruthy;
sut.disabeSetMode();
expect(sut.isSetMode()).toBeFalsy;
});
});
describe("#isJumpMode/#enableJumpMode/#disabeJumpMode", () => {
it("enables and disables jump mode", () => {
expect(sut.isJumpMode()).toBeFalsy;
sut.enableJumpMode();
expect(sut.isJumpMode()).toBeTruthy;
sut.disabeJumpMode();
expect(sut.isJumpMode()).toBeFalsy;
});
});
});
|