A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
649 B
25 lines
649 B
6 years ago
|
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;
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
|