aboutsummaryrefslogtreecommitdiffstats
path: root/test/jsUtils.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/jsUtils.test.ts')
-rw-r--r--test/jsUtils.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/jsUtils.test.ts b/test/jsUtils.test.ts
index 0662c3c48..cdded7aca 100644
--- a/test/jsUtils.test.ts
+++ b/test/jsUtils.test.ts
@@ -97,13 +97,13 @@ describe('jsUtils', () => {
97 }); 97 });
98 98
99 describe('isEscKeyPress', () => { 99 describe('isEscKeyPress', () => {
100 it('returns true if the key number is 27', () => { 100 it('returns true if the key is "Escape"', () => {
101 const result = jsUtils.isEscKeyPress(27); 101 const result = jsUtils.isEscKeyPress('Escape');
102 expect(result).toEqual(true); 102 expect(result).toEqual(true);
103 }); 103 });
104 104
105 it('returns false if the key number is 27', () => { 105 it('returns false if the key is some other key', () => {
106 const result = jsUtils.isEscKeyPress(28); 106 const result = jsUtils.isEscKeyPress('Backspace');
107 expect(result).toEqual(false); 107 expect(result).toEqual(false);
108 }); 108 });
109 }); 109 });