Skip to content

Commit

Permalink
update has tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smhigley committed Aug 31, 2017
1 parent 08c9272 commit 4678025
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/textinput/tests/unit/TextInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ import Label from '../../../label/Label';
import TextInput, { TextInputProperties } from '../../TextInput';
import * as css from '../../styles/textinput.m.css';

const hasTouch = (function (): boolean {
/* Since jsdom will fake it anyways, no problem pretending we can do touch in NodeJS */
return Boolean('ontouchstart' in window || has('host-node'));
})();

const expected = function(widget: any, label = false) {
const inputVdom = v('div', { classes: widget.classes(css.inputWrapper) }, [
v('input', {
Expand Down Expand Up @@ -229,7 +224,7 @@ registerSuite({
},

'touch events'(this: any) {
if (!hasTouch) {
if (!has('touch')) {
this.skip('Environment not support touch events');
}

Expand Down

0 comments on commit 4678025

Please sign in to comment.