blob: 409012ad6d75bea97cae5b22ccdc13d61c7c638a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import { SettingRepositoryImpl } from "../../../src/content/repositories/SettingRepository";
import Settings from "../../../src/shared/settings/Settings";
describe("SettingRepositoryImpl", () => {
it("updates and gets current value", () => {
const sut = new SettingRepositoryImpl();
const settings = Settings.fromJSON({
keymaps: {},
search: {
default: "google",
engines: {
google: "https://google.com/?q={}",
},
},
properties: {
hintchars: "abcd1234",
smoothscroll: false,
complete: "sbh",
},
blacklist: [],
});
sut.set(settings);
const actual = sut.get();
expect(actual.properties.hintchars).toEqual("abcd1234");
});
});
|