summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-07-13 14:21:52 +0200
committerPierre Ossman <ossman@cendio.se>2018-07-13 15:57:24 +0200
commit9eaea86234f6f0bd700450c84fdc2c984a238024 (patch)
tree67688e5f8dc36ba52f299b250091098d17a716fa
parentd131633471faa781b92f7f5b5deb0a1ae1d4e849 (diff)
downloadnovnc-9eaea86234f6f0bd700450c84fdc2c984a238024.tar.gz
Don't stub out ES module imports
It is not allowed and only happens to work because babel doesn't strictly follow the specification. It doesn't seem necessary for the tests to run, so just remove it.
-rw-r--r--tests/test.mouse.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test.mouse.js b/tests/test.mouse.js
index c4be560..dd8046c 100644
--- a/tests/test.mouse.js
+++ b/tests/test.mouse.js
@@ -1,12 +1,10 @@
const expect = chai.expect;
import Mouse from '../core/input/mouse.js';
-import * as eventUtils from '../core/util/events.js';
describe('Mouse Event Handling', function() {
"use strict";
- sinon.stub(eventUtils, 'setCapture');
// This function is only used on target (the canvas)
// and for these tests we can assume that the canvas is 100x100
// located at coordinates 10x10