fix tests to use the npm jquery
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
import * as contextmenu from '../../../instrumented/editor/contextmenu.js';
|
||||
|
||||
describe('contextmenu', function () {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||
import * as coords from '../../../instrumented/svgcanvas/coords.js';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
import * as draw from '../../../instrumented/svgcanvas/draw.js';
|
||||
import * as units from '../../../instrumented/common/units.js';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
import * as transformlist from '../../../instrumented/svgcanvas/svgtransformlist.js';
|
||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
import * as math from '../../../instrumented/svgcanvas/math.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* globals SVGPathSeg */
|
||||
import 'pathseg';
|
||||
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||
import * as coords from '../../../instrumented/svgcanvas/coords.js';
|
||||
import * as recalculate from '../../../instrumented/svgcanvas/recalculate.js';
|
||||
|
||||
|
||||
describe('recalculate', function () {
|
||||
// eslint-disable-next-line no-shadow
|
||||
const root = document.createElement('div');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
import * as sanitize from '../../../instrumented/svgcanvas/sanitize.js';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
import * as select from '../../../instrumented/svgcanvas/select.js';
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
import * as transformlist from '../../../instrumented/svgcanvas/svgtransformlist.js';
|
||||
import { disableSupportsNativeTransformLists } from '../../../instrumented/common/browser.js';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/* eslint-disable max-len, no-console */
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
|
||||
import SvgCanvas from '../../../instrumented/svgcanvas/svgcanvas.js';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
import * as units from '../../../instrumented/common/units.js';
|
||||
|
||||
describe('units', function () {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable max-len */
|
||||
import 'pathseg';
|
||||
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/* eslint-disable max-len, no-console */
|
||||
import 'pathseg';
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable max-len */
|
||||
import '../../../instrumented/editor/jquery.min.js';
|
||||
|
||||
import $ from 'jquery';
|
||||
window.$ = $;
|
||||
import * as browser from '../../../instrumented/common/browser.js';
|
||||
import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
|
||||
import { NS } from '../../../instrumented/common/namespaces.js';
|
||||
|
||||
Reference in New Issue
Block a user