aboutsummaryrefslogtreecommitdiff
path: root/test/shared/settings
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-05-04 16:18:12 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-05-04 16:41:51 +0900
commit65fedca9dfc4b85acce85b9eb3272cfc76d112a7 (patch)
tree7a0d8a7fbb0a053fb39dc67ef78166ab3c252a98 /test/shared/settings
parent614778f6ad2633d90deffe6ef3d373c44967b10c (diff)
Allow to change color scheme by "colorscheme" property
Diffstat (limited to 'test/shared/settings')
-rw-r--r--test/shared/settings/Properties.test.ts4
-rw-r--r--test/shared/settings/Settings.test.ts1
2 files changed, 5 insertions, 0 deletions
diff --git a/test/shared/settings/Properties.test.ts b/test/shared/settings/Properties.test.ts
index 6007e84..647cb1c 100644
--- a/test/shared/settings/Properties.test.ts
+++ b/test/shared/settings/Properties.test.ts
@@ -1,5 +1,6 @@
import Properties from "../../../src/shared/settings/Properties";
import { expect } from "chai";
+import ColorScheme from "../../../src/shared/ColorScheme";
describe("Properties", () => {
describe("#propertiesValueOf", () => {
@@ -9,6 +10,7 @@ describe("Properties", () => {
hintchars: "abcdefghijklmnopqrstuvwxyz",
smoothscroll: false,
complete: "sbh",
+ colorscheme: "system",
});
});
@@ -17,12 +19,14 @@ describe("Properties", () => {
hintchars: "abcdefgh",
smoothscroll: false,
complete: "sbh",
+ colorscheme: ColorScheme.System,
});
expect(props).to.deep.equal({
hintchars: "abcdefgh",
smoothscroll: false,
complete: "sbh",
+ colorscheme: "system",
});
});
});
diff --git a/test/shared/settings/Settings.test.ts b/test/shared/settings/Settings.test.ts
index 4ecfe77..951c9cd 100644
--- a/test/shared/settings/Settings.test.ts
+++ b/test/shared/settings/Settings.test.ts
@@ -33,6 +33,7 @@ describe("Settings", () => {
hintchars: "abcdefghijklmnopqrstuvwxyz",
smoothscroll: false,
complete: "sbh",
+ colorscheme: "system",
},
blacklist: [],
});