diff --git a/test/Creatable-test.js b/test/Creatable-test.js index de6bfa42ff..968478fd9a 100644 --- a/test/Creatable-test.js +++ b/test/Creatable-test.js @@ -232,4 +232,9 @@ describe('Creatable', () => { expect(test(188), 'to be', true); expect(test(1), 'to be', false); }); + + it('default :onInputKeyDown should run user provided handler.', (done) => { + createControl({ onInputKeyDown: event => done() }); + return creatableInstance.onInputKeyDown({ keyCode: 97 }); + }); });