From: Pierre Ossman Date: Fri, 13 Jul 2018 12:21:52 +0000 (+0200) Subject: Don't stub out ES module imports X-Git-Tag: v1.1.0~56 X-Git-Url: https://git.proxmox.com/?p=mirror_novnc.git;a=commitdiff_plain;h=9eaea86234f6f0bd700450c84fdc2c984a238024 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. --- 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