This repository has been archived on 2020-04-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Vim-Vixen/test/content/repositories/FollowSlaveRepository.test.ts
2019-05-19 15:36:14 +09:00

24 lines
649 B
TypeScript

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;
});
});
});