diff --git a/packages/commands/tests/src/index.spec.ts b/packages/commands/tests/src/index.spec.ts index d19e07325..82b9a8c4a 100644 --- a/packages/commands/tests/src/index.spec.ts +++ b/packages/commands/tests/src/index.spec.ts @@ -701,9 +701,13 @@ describe('@lumino/commands', () => { describe('#processKeydownEvent()', () => { it('should dispatch on a correct keyboard event', () => { let called = false; + let _luminoEventType; + let _luminoEventKeys; registry.addCommand('test', { - execute: () => { + execute: (args) => { called = true; + _luminoEventType = (args._luminoEvent as ReadonlyJSONObject).type + _luminoEventKeys = (args._luminoEvent as ReadonlyJSONObject).keys } }); registry.addKeyBinding({ @@ -718,6 +722,8 @@ describe('@lumino/commands', () => { }) ); expect(called).to.equal(true); + expect(_luminoEventType).to.equal('keybinding') + expect(_luminoEventKeys).to.contain('Ctrl ;') }); it('should not dispatch on a suppressed node', () => {