From 0263170bd2603165edecce1b55493c7b2092e2e6 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 5 Feb 2020 22:19:46 +0900 Subject: Treats digit keys with modifiers --- test/shared/settings/Key.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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; -- cgit v1.2.3