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.
36 lines
908 B
36 lines
908 B
import MarkRepository, { MarkKeyRepositoryImpl } |
|
from '../../../src/content/repositories/MarkKeyRepository'; |
|
import { expect } from 'chai'; |
|
|
|
describe('MarkKeyRepositoryImpl', () => { |
|
let sut: MarkRepository; |
|
|
|
before(() => { |
|
sut = new MarkKeyRepositoryImpl(); |
|
}) |
|
|
|
describe('#isSetMode/#enableSetMode/#disabeSetMode', () => { |
|
it('enables and disables set mode', () => { |
|
expect(sut.isSetMode()).to.be.false; |
|
|
|
sut.enableSetMode(); |
|
expect(sut.isSetMode()).to.be.true; |
|
|
|
sut.disabeSetMode(); |
|
expect(sut.isSetMode()).to.be.false; |
|
}); |
|
}); |
|
|
|
describe('#isJumpMode/#enableJumpMode/#disabeJumpMode', () => { |
|
it('enables and disables jump mode', () => { |
|
expect(sut.isJumpMode()).to.be.false; |
|
|
|
sut.enableJumpMode(); |
|
expect(sut.isJumpMode()).to.be.true; |
|
|
|
sut.disabeJumpMode(); |
|
expect(sut.isJumpMode()).to.be.false; |
|
}); |
|
}); |
|
}); |
|
|
|
|