File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,17 @@ import assert from 'assert';
22import jsdom from 'jsdom' ;
33import R from 'ramda' ;
44import sinon from 'sinon' ;
5- import bindInputPanel from '../lib/js/input-panel' ;
5+
6+ // Provide a way to push time forwards (as the input is debounced).
7+ const clock = sinon . useFakeTimers ( ) ;
8+ const bindInputPanel = require ( '../lib/js/input-panel' ) . default ;
9+
610
711describe ( 'Input panel' , function ( ) {
812
913 let errMsgEl ,
1014 inputEl ,
11- output ,
12- clock ;
15+ output ;
1316
1417 beforeEach ( function ( ) {
1518
@@ -35,9 +38,6 @@ describe('Input panel', function() {
3538 // https://github.com/tmpvar/jsdom/issues/317
3639 doc . body . createTextRange = ( ) => doc . querySelector ( '.mock' ) ;
3740
38- // Provide a way to push time forwards (as the input is debounced).
39- clock = sinon . useFakeTimers ( ) ;
40-
4141 errMsgEl = doc . querySelector ( '.err-msg' ) ;
4242 inputEl = doc . querySelector ( '.input' ) ;
4343 output = {
You can’t perform that action at this time.
0 commit comments