]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Don't stub out ES module imports
authorPierre Ossman <ossman@cendio.se>
Fri, 13 Jul 2018 12:21:52 +0000 (14:21 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 13 Jul 2018 13:57:24 +0000 (15:57 +0200)
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.

tests/test.mouse.js

index c4be560b6ffe4affba0e1ec285de2783e56d7cc6..dd8046cf64564d96588af28f2ea718c1aea4c07c 100644 (file)
@@ -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