Skip to content

Commit

Permalink
Add unit test for fix - Creatable doesn't allow input key down handli…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Leonenko committed Sep 23, 2016
1 parent 290aa15 commit d2ff4a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Creatable-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
});
});

0 comments on commit d2ff4a9

Please sign in to comment.