diff options
| author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-05-04 17:50:42 +0900 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-04 17:50:42 +0900 | 
| commit | 69b6894b1997a773678709a7cd591afddc15c8ce (patch) | |
| tree | 07e4c665829236e733316ae6f2684fe03b0a6781 /test/shared | |
| parent | 49addd75b76f185c9dad5d74e44e39cbea360510 (diff) | |
| parent | 44ff8e449dba0de32500da3c3f17fc1361449717 (diff) | |
Merge pull request #751 from ueokande/dark-mode
Supports dark mode
Diffstat (limited to 'test/shared')
| -rw-r--r-- | test/shared/SettingData.test.ts | 13 | ||||
| -rw-r--r-- | test/shared/settings/Properties.test.ts | 4 | ||||
| -rw-r--r-- | test/shared/settings/Settings.test.ts | 1 | 
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: [],        }); | 
