aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-02-05 22:19:46 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-02-09 08:56:38 +0900
commit0263170bd2603165edecce1b55493c7b2092e2e6 (patch)
treee7bf8064886713fb9b11fbcd841ab511c34edf26 /test
parentc2b1aca9a1db96c52386b478a7e25472410226d4 (diff)
Treats digit keys with modifiers
Diffstat (limited to 'test')
-rw-r--r--test/shared/settings/Key.test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/shared/settings/Key.test.ts b/test/shared/settings/Key.test.ts
index 3a1c86e..b8538f8 100644
--- a/test/shared/settings/Key.test.ts
+++ b/test/shared/settings/Key.test.ts
@@ -80,7 +80,7 @@ describe("Key", () => {
it('returns true if the key is a digit', () => {
expect(new Key({ key: '0' }).isDigit()).to.be.true;
expect(new Key({ key: '9' }).isDigit()).to.be.true;
- expect(new Key({ key: '9', shift: true }).isDigit()).to.be.true;
+ expect(new Key({ key: '9', alt: true }).isDigit()).to.be.false;
expect(new Key({ key: 'a' }).isDigit()).to.be.false;
expect(new Key({ key: '0' }).isDigit()).to.be.false;