diff --git a/src/lib/components/Keyboard.js b/src/lib/components/Keyboard.js index 853e1c5a..d769a1b5 100644 --- a/src/lib/components/Keyboard.js +++ b/src/lib/components/Keyboard.js @@ -647,6 +647,7 @@ class SimpleKeyboard { return buttonThemesParsed; } + /* istanbul ignore next */ onTouchDeviceDetected() { /** * Processing autoTouchEvents @@ -676,6 +677,7 @@ class SimpleKeyboard { /** * Process autoTouchEvents option */ + /* istanbul ignore next */ processAutoTouchEvents() { if (this.options.autoUseTouchEvents) { this.options.useTouchEvents = true; @@ -711,6 +713,7 @@ class SimpleKeyboard { /** * Performing actions when touch device detected */ + /* istanbul ignore next */ if (this.utilities.isTouchDevice()) { this.onTouchDeviceDetected(); } diff --git a/src/lib/components/tests/Keyboard.test.js b/src/lib/components/tests/Keyboard.test.js index 39b77b19..4c92cc5c 100644 --- a/src/lib/components/tests/Keyboard.test.js +++ b/src/lib/components/tests/Keyboard.test.js @@ -977,31 +977,6 @@ it('Keyboard inputPattern will work by input name', () => { expect(keyboard.getInput()).toBe("q1"); }); -it('Keyboard processAutoTouchEvents will work', () => { - testUtil.setDOM(); - - navigator.maxTouchPoints = true; - - let keyboard = new Keyboard({ - autoUseTouchEvents: true - }); - - expect(keyboard.options.useTouchEvents).toBeTruthy(); -}); - -it('Keyboard processAutoTouchEvents will work with debugging enabled', () => { - testUtil.setDOM(); - - navigator.maxTouchPoints = true; - - let keyboard = new Keyboard({ - autoUseTouchEvents: true, - debug: true - }); - - expect(keyboard.options.useTouchEvents).toBeTruthy(); -}); - it('Keyboard beforeFirstRender method will work', () => { testUtil.setDOM();