Fixed onChangeAll callback

This commit is contained in:
Francisco Hodge
2019-03-07 20:51:57 -05:00
parent 30941f4ba0
commit bd0274415b
2 changed files with 22 additions and 0 deletions
+16
View File
@@ -186,6 +186,22 @@ it('Keyboard onChange will work', () => {
expect(output).toBe("q");
});
it('Keyboard onChangeAll will work', () => {
testUtil.setDOM();
let output;
let keyboard = new Keyboard({
onChangeAll: (input) => {
output = input ? input.default : null;
}
});
keyboard.getButtonElement("q").onclick();
expect(output).toBe("q");
});
it('Keyboard clearInput will work', () => {
testUtil.setDOM();