Skip to content

Commit 0385468

Browse files
authored
Merge pull request #57 from seanpoulter/issue-56
Fix failing tests (#56)
2 parents 5563e4b + 624be49 commit 0385468

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/input-panel.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ import assert from 'assert';
22
import jsdom from 'jsdom';
33
import R from 'ramda';
44
import 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

711
describe('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 = {

0 commit comments

Comments
 (0)