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.
31 lines
692 B
31 lines
692 B
6 years ago
|
import { SettingRepositoryImpl } from '../../../src/content/repositories/SettingRepository';
|
||
|
import { expect } from 'chai';
|
||
|
|
||
|
describe('SettingRepositoryImpl', () => {
|
||
|
it('updates and gets current value', () => {
|
||
|
let sut = new SettingRepositoryImpl();
|
||
|
|
||
|
let settings = {
|
||
|
keymaps: {},
|
||
|
search: {
|
||
|
default: 'google',
|
||
|
engines: {
|
||
|
google: 'https://google.com/?q={}',
|
||
|
}
|
||
|
},
|
||
|
properties: {
|
||
|
hintchars: 'abcd1234',
|
||
|
smoothscroll: false,
|
||
|
complete: 'sbh',
|
||
|
},
|
||
|
blacklist: [],
|
||
|
}
|
||
|
|
||
|
sut.set(settings);
|
||
|
|
||
|
let actual = sut.get();
|
||
|
expect(actual.properties.hintchars).to.equal('abcd1234');
|
||
|
});
|
||
|
});
|
||
|
|