File tree Expand file tree Collapse file tree 15 files changed +30
-20
lines changed Expand file tree Collapse file tree 15 files changed +30
-20
lines changed Original file line number Diff line number Diff line change 44 < meta charset ='utf-8 '/>
55
66 <!-- npm modules -->
7- < script src ='../../node_modules/chai/chai.js '> </ script >
87 < script src ='../../node_modules/mocha/mocha.js '> </ script >
98
109 <!-- initialize the test framework; this must come first -->
Original file line number Diff line number Diff line change 44
55/**
66 * @fileoverview Test framework setup when run inside the browser.
7+ * @suppress {moduleLoad} closure compiler can't handle node_modules/.
78 */
89
10+ import { assert } from '../../node_modules/chai/chai.js' ;
11+
912// Setup the mocha framework.
1013mocha . setup ( 'bdd' ) ;
1114mocha . checkLeaks ( ) ;
1215
1316// Add a global shortcut to the assert API.
14- globalThis [ 'assert' ] = chai . assert ;
17+ globalThis [ 'assert' ] = assert ;
1518
1619// Catch any random errors before the test runner runs.
1720let earlyError = null ;
Original file line number Diff line number Diff line change 2929 },
3030 "devDependencies" : {
3131 "@rollup/plugin-node-resolve" : " ~15" ,
32- "chai" : " ~4 " ,
32+ "chai" : " ~5 " ,
3333 "eslint" : " ~8" ,
3434 "mocha" : " ~11" ,
3535 "mocha-headless-chrome" : " ~4" ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import libdot
1616# The hash of the node_modules that we maintain.
1717# Allow a long line for easy automated updating.
1818NODE_MODULES_HASH = (
19- "f54d402945ab7d7be9cc882249ace797e392b24abbbf3ea20feeb6b71d6c4ea8 "
19+ "d384bf88a099d6b1f1140c8eefee178d1b6923fda2fe8d0a9f0055a44acd171f "
2020)
2121
2222# In sync with Chromium's DEPS file because it's easier to use something that
Original file line number Diff line number Diff line change 44 < meta charset ='utf-8 '/>
55
66 <!-- npm modules -->
7- < script src ='../../node_modules/chai/chai.js '> </ script >
87 < script src ='../../node_modules/mocha/mocha.js '> </ script >
98
109 <!-- initialize the test framework; this must come first -->
Original file line number Diff line number Diff line change 44
55/**
66 * @fileoverview Test framework setup when run inside the browser.
7+ * @suppress {moduleLoad} closure compiler can't handle node_modules/.
78 */
89
10+ import { assert } from '../../node_modules/chai/chai.js' ;
11+
912// Setup the mocha framework.
1013mocha . setup ( 'bdd' ) ;
1114mocha . checkLeaks ( ) ;
1215
1316// Add a global shortcut to the assert API.
14- globalThis [ 'assert' ] = chai . assert ;
17+ globalThis [ 'assert' ] = assert ;
1518
1619// Catch any random errors before the test runner runs.
1720let earlyError = null ;
Original file line number Diff line number Diff line change 2626 "test" : " ./bin/load_tests"
2727 },
2828 "devDependencies" : {
29- "chai" : " ~4 " ,
29+ "chai" : " ~5 " ,
3030 "eslint" : " ~8" ,
3131 "mocha" : " ~11" ,
3232 "mocha-headless-chrome" : " ~4" ,
Original file line number Diff line number Diff line change 44 < meta charset ='utf-8 '/>
55
66 <!-- npm modules -->
7- < script src ='../../node_modules/chai/chai.js '> </ script >
87 < script src ='../../node_modules/mocha/mocha.js '> </ script >
98
109 <!-- initialize the test framework; this must come first -->
Original file line number Diff line number Diff line change 44
55/**
66 * @fileoverview Test framework setup when run inside the browser.
7+ * @suppress {moduleLoad} closure compiler can't handle node_modules/.
78 */
89
10+ import { assert } from '../../node_modules/chai/chai.js' ;
11+
912// Setup the mocha framework.
1013mocha . setup ( 'bdd' ) ;
1114mocha . checkLeaks ( ) ;
1215
1316// Add a global shortcut to the assert API.
14- globalThis [ 'assert' ] = chai . assert ;
17+ globalThis [ 'assert' ] = assert ;
1518
1619// Catch any random errors before the test runner runs.
1720let earlyError = null ;
Original file line number Diff line number Diff line change 3131 "devDependencies" : {
3232 "@rollup/plugin-node-resolve" : " ~15" ,
3333 "@rollup/plugin-terser" : " ~0" ,
34- "chai" : " ~4 " ,
34+ "chai" : " ~5 " ,
3535 "eslint" : " ~8" ,
3636 "http-server" : " ~14" ,
3737 "license-checker" : " ~25" ,
You can’t perform that action at this time.
0 commit comments