blob: 10cf09430103bfc9bb501662b9f8763ea7c2b275 (
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
|
import FollowSlaveRepository, { FollowSlaveRepositoryImpl }
from '../../../src/content/repositories/FollowSlaveRepository';
import { expect } from 'chai';
describe('FollowSlaveRepository', () => {
let sut: FollowSlaveRepository;
before(() => {
sut = new FollowSlaveRepositoryImpl();
});
describe('#isFollowMode()/#enableFollowMode()/#disableFollowMode()', () => {
it('gets, adds updates follow mode', () => {
expect(sut.isFollowMode()).to.be.false;
sut.enableFollowMode();
expect(sut.isFollowMode()).to.be.true;
sut.disableFollowMode();
expect(sut.isFollowMode()).to.be.false;
});
});
});
|