aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/shared/SettingData.test.ts13
-rw-r--r--test/shared/settings/Properties.test.ts4
-rw-r--r--test/shared/settings/Settings.test.ts1
3 files changed, 16 insertions, 2 deletions
diff --git a/test/shared/SettingData.test.ts b/test/shared/SettingData.test.ts
index 283daa5..3cfd5c9 100644
--- a/test/shared/SettingData.test.ts
+++ b/test/shared/SettingData.test.ts
@@ -6,6 +6,7 @@ import SettingData, {
import Settings from "../../src/shared/settings/Settings";
import { expect } from "chai";
import Keymaps from "../../src/shared/settings/Keymaps";
+import ColorScheme from "../../src/shared/ColorScheme";
describe("shared/SettingData", () => {
describe("FormKeymaps", () => {
@@ -54,7 +55,8 @@ describe("shared/SettingData", () => {
"properties": {
"hintchars": "abcdefghijklmnopqrstuvwxyz",
"smoothscroll": false,
- "complete": "sbh"
+ "complete": "sbh",
+ "colorscheme": "system"
},
"blacklist": []
}`;
@@ -104,6 +106,7 @@ describe("shared/SettingData", () => {
hintchars: "abcdefghijklmnopqrstuvwxyz",
smoothscroll: false,
complete: "sbh",
+ colorscheme: ColorScheme.System,
},
blacklist: [],
};
@@ -124,6 +127,7 @@ describe("shared/SettingData", () => {
hintchars: "abcdefghijklmnopqrstuvwxyz",
smoothscroll: false,
complete: "sbh",
+ colorscheme: "system",
},
blacklist: [],
});
@@ -147,6 +151,7 @@ describe("shared/SettingData", () => {
hintchars: "abcdefghijklmnopqrstuvwxyz",
smoothscroll: false,
complete: "sbh",
+ colorscheme: ColorScheme.System,
},
blacklist: [],
});
@@ -165,6 +170,7 @@ describe("shared/SettingData", () => {
hintchars: "abcdefghijklmnopqrstuvwxyz",
smoothscroll: false,
complete: "sbh",
+ colorscheme: "system",
},
blacklist: [],
});
@@ -188,7 +194,8 @@ describe("shared/SettingData", () => {
"properties": {
"hintchars": "abcdefghijklmnopqrstuvwxyz",
"smoothscroll": false,
- "complete": "sbh"
+ "complete": "sbh",
+ "colorscheme": "system"
},
"blacklist": []
}`,
@@ -212,6 +219,7 @@ describe("shared/SettingData", () => {
hintchars: "abcdefghijklmnopqrstuvwxyz",
smoothscroll: false,
complete: "sbh",
+ colorscheme: ColorScheme.System,
},
blacklist: [],
},
@@ -229,6 +237,7 @@ describe("shared/SettingData", () => {
hintchars: "abcdefghijklmnopqrstuvwxyz",
smoothscroll: false,
complete: "sbh",
+ colorscheme: "system",
},
blacklist: [],
});
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: [],
});