mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-19 16:52:59 +08:00
Tests update
This commit is contained in:
parent
5ab58f2528
commit
6e54729f46
@ -1023,6 +1023,23 @@ it('Keyboard beforeFirstRender method will work', () => {
|
||||
expect(timesCalled).toBe(1);
|
||||
});
|
||||
|
||||
it('Keyboard beforeFirstRender will show PointerEvents warning', () => {
|
||||
testUtil.setDOM();
|
||||
|
||||
let timesCalled = 0;
|
||||
|
||||
window.PointerEvent = window.PointerEvent ? window.PointerEvent : () => {};
|
||||
|
||||
let keyboard = new Keyboard({
|
||||
debug: true,
|
||||
beforeFirstRender: () => {
|
||||
timesCalled++;
|
||||
}
|
||||
});
|
||||
|
||||
expect(timesCalled).toBe(1);
|
||||
});
|
||||
|
||||
it('Keyboard beforeRender method will work', () => {
|
||||
testUtil.setDOM();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user