Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7177040

Browse files
committed
use es6 in tasks/test_requirejs.mjs
1 parent f0baa3e commit 7177040

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/test_requirejs.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var JSDOM = require('jsdom').JSDOM;
1+
import { JSDOM } from 'jsdom';
22
global.document = new JSDOM('<!DOCTYPE html><head></head><html><body></body></html>').window.document;
33
global.window = document.defaultView;
44
global.window.document = global.document;
@@ -8,7 +8,7 @@ global.DOMParser = global.window.DOMParser;
88
global.getComputedStyle = global.window.getComputedStyle;
99
global.window.URL.createObjectURL = function() {};
1010

11-
var requirejs = require('requirejs');
11+
import requirejs from 'requirejs';
1212

1313
requirejs.config({
1414
paths: {

0 commit comments

Comments
 (0)