2.30.0 - Updated boilerplate, added selection handling - per #637

This commit is contained in:
Francisco Hodge
2020-08-07 17:52:12 -04:00
parent e0ca526419
commit 07743c9ff8
34 changed files with 5080 additions and 9031 deletions
@@ -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();