Tests update

This commit is contained in:
Francisco Hodge 2019-03-07 07:32:15 -05:00
parent 5ab58f2528
commit 6e54729f46

View File

@ -1023,6 +1023,23 @@ it('Keyboard beforeFirstRender method will work', () => {
expect(timesCalled).toBe(1); 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', () => { it('Keyboard beforeRender method will work', () => {
testUtil.setDOM(); testUtil.setDOM();