Skip to content

Commit 5636a5e

Browse files
committed
Mark Base64 as global in mocha
Without this, some tests ran with --check-leaks fail. This global binding is provided by js-base64.
1 parent 5edc7ef commit 5636a5e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@
8888
"schemas/"
8989
],
9090
"scripts": {
91-
"test": "mocha test/*.test.js test/*.unittest.js --max-old-space-size=4096 --harmony --trace-deprecation --check-leaks",
92-
"test:integration": "mocha test/*.test.js --max-old-space-size=4096 --harmony --trace-deprecation --check-leaks",
93-
"test:unit": "mocha test/*.unittest.js --max-old-space-size=4096 --harmony --trace-deprecation --check-leaks",
91+
"test": "mocha test/*.test.js test/*.unittest.js --max-old-space-size=4096 --harmony --trace-deprecation",
92+
"test:integration": "mocha test/*.test.js --max-old-space-size=4096 --harmony --trace-deprecation",
93+
"test:unit": "mocha test/*.unittest.js --max-old-space-size=4096 --harmony --trace-deprecation",
9494
"travis:integration": "npm run cover:init && npm run cover:integration && npm run cover:report-min",
9595
"travis:unit": "npm run cover:init && npm run cover:unit && npm run cover:report-min",
9696
"travis:lint": "npm run lint-files && npm run nsp",

test/mocha.opts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
--full-trace
22
--reporter dot
3+
--check-leaks
4+
--globals Base64

0 commit comments

Comments
 (0)