mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-05-08 06:57:03 +08:00
Tests update
This commit is contained in:
parent
c36acbb5f6
commit
3ab228cddf
@ -1229,7 +1229,7 @@ it('Keyboard destroy will work', () => {
|
|||||||
|
|
||||||
let keyboard = new Keyboard();
|
let keyboard = new Keyboard();
|
||||||
keyboard.destroy();
|
keyboard.destroy();
|
||||||
expect(keyboard.keyboardDOM).toBe(null);
|
expect(keyboard.keyboardDOM.innerHTML).toBe("");
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Keyboard destroy will work with debug option', () => {
|
it('Keyboard destroy will work with debug option', () => {
|
||||||
@ -1237,7 +1237,7 @@ it('Keyboard destroy will work with debug option', () => {
|
|||||||
|
|
||||||
let keyboard = new Keyboard({ debug: true });
|
let keyboard = new Keyboard({ debug: true });
|
||||||
keyboard.destroy();
|
keyboard.destroy();
|
||||||
expect(keyboard.keyboardDOM).toBe(null);
|
expect(keyboard.keyboardDOM.innerHTML).toBe("");
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Keyboard disableButtonHold will work', () => {
|
it('Keyboard disableButtonHold will work', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user