Make Search class

This commit is contained in:
Shin'ya UEOKA 2019-10-05 01:08:07 +00:00
parent 410ffbb037
commit 2116ac90a6
9 changed files with 182 additions and 130 deletions

View file

@ -1,6 +1,7 @@
import { SettingRepositoryImpl } from '../../../src/content/repositories/SettingRepository';
import { expect } from 'chai';
import Keymaps from '../../../src/shared/settings/Keymaps';
import Search from '../../../src/shared/settings/Search';
describe('SettingRepositoryImpl', () => {
it('updates and gets current value', () => {
@ -8,12 +9,12 @@ describe('SettingRepositoryImpl', () => {
let settings = {
keymaps: Keymaps.fromJSON({}),
search: {
search: Search.fromJSON({
default: 'google',
engines: {
google: 'https://google.com/?q={}',
}
},
}),
properties: {
hintchars: 'abcd1234',
smoothscroll: false,