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.
This commit is contained in:
parent
d131633471
commit
9eaea86234
|
@ -1,12 +1,10 @@
|
||||||
const expect = chai.expect;
|
const expect = chai.expect;
|
||||||
|
|
||||||
import Mouse from '../core/input/mouse.js';
|
import Mouse from '../core/input/mouse.js';
|
||||||
import * as eventUtils from '../core/util/events.js';
|
|
||||||
|
|
||||||
describe('Mouse Event Handling', function() {
|
describe('Mouse Event Handling', function() {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
sinon.stub(eventUtils, 'setCapture');
|
|
||||||
// This function is only used on target (the canvas)
|
// This function is only used on target (the canvas)
|
||||||
// and for these tests we can assume that the canvas is 100x100
|
// and for these tests we can assume that the canvas is 100x100
|
||||||
// located at coordinates 10x10
|
// located at coordinates 10x10
|
||||||
|
|
Loading…
Reference in New Issue