mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-04-11 00:02:15 +08:00
2.30.0 - Updated boilerplate, added selection handling - per #637
This commit is contained in:
@@ -1,18 +1,16 @@
|
||||
import TestUtility from '../../utils/TestUtility';
|
||||
import { setDOM } from '../../utils/TestUtility';
|
||||
import MultipleKeyboardsDestroyDemo from '../MultipleKeyboardsDestroyDemo';
|
||||
|
||||
jest.useFakeTimers();
|
||||
|
||||
const testUtil = new TestUtility();
|
||||
|
||||
it('Demo will load', () => {
|
||||
testUtil.setDOM();
|
||||
setDOM();
|
||||
|
||||
new MultipleKeyboardsDestroyDemo();
|
||||
});
|
||||
|
||||
it('Demo onDOMLoaded will work', () => {
|
||||
testUtil.setDOM();
|
||||
setDOM();
|
||||
|
||||
const demo = new MultipleKeyboardsDestroyDemo();
|
||||
|
||||
@@ -20,7 +18,7 @@ it('Demo onDOMLoaded will work', () => {
|
||||
});
|
||||
|
||||
it('Demo onChange will work', () => {
|
||||
testUtil.setDOM();
|
||||
setDOM();
|
||||
|
||||
const demo = new MultipleKeyboardsDestroyDemo();
|
||||
|
||||
@@ -32,7 +30,7 @@ it('Demo onChange will work', () => {
|
||||
});
|
||||
|
||||
it('Demo onChange will work', () => {
|
||||
testUtil.setDOM();
|
||||
setDOM();
|
||||
|
||||
const demo = new MultipleKeyboardsDestroyDemo();
|
||||
|
||||
@@ -42,7 +40,7 @@ it('Demo onChange will work', () => {
|
||||
});
|
||||
|
||||
it('Demo input change will work', () => {
|
||||
testUtil.setDOM();
|
||||
setDOM();
|
||||
|
||||
const demo = new MultipleKeyboardsDestroyDemo();
|
||||
|
||||
@@ -57,7 +55,7 @@ it('Demo input change will work', () => {
|
||||
});
|
||||
|
||||
it('Demo handleShiftButton will work', () => {
|
||||
testUtil.setDOM();
|
||||
setDOM();
|
||||
|
||||
const demo = new MultipleKeyboardsDestroyDemo();
|
||||
|
||||
@@ -69,7 +67,7 @@ it('Demo handleShiftButton will work', () => {
|
||||
});
|
||||
|
||||
it('MultipleKeyboardsDestroyDemo will run all timers', () => {
|
||||
testUtil.setDOM();
|
||||
setDOM();
|
||||
|
||||
const demo = new MultipleKeyboardsDestroyDemo();
|
||||
jest.runAllTimers();
|
||||
|
||||
Reference in New Issue
Block a user