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
776 B
31 lines
776 B
5 years ago
|
import Properties from '../../../src/shared/settings/Properties';
|
||
|
import { expect } from 'chai';
|
||
|
|
||
|
describe('Properties', () => {
|
||
|
describe('#propertiesValueOf', () => {
|
||
|
it('returns with default properties by empty settings', () => {
|
||
|
let props = Properties.fromJSON({});
|
||
|
expect(props).to.deep.equal({
|
||
|
hintchars: "abcdefghijklmnopqrstuvwxyz",
|
||
|
smoothscroll: false,
|
||
|
complete: "sbh"
|
||
|
})
|
||
|
});
|
||
|
|
||
|
it('returns properties by valid settings', () => {
|
||
|
let props = Properties.fromJSON({
|
||
|
hintchars: "abcdefgh",
|
||
|
smoothscroll: false,
|
||
|
complete: "sbh"
|
||
|
});
|
||
|
|
||
|
expect(props).to.deep.equal({
|
||
|
hintchars: "abcdefgh",
|
||
|
smoothscroll: false,
|
||
|
complete: "sbh"
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
|