aboutsummaryrefslogtreecommitdiffstats
path: root/test/helper.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/helper.js')
-rw-r--r--test/helper.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/helper.js b/test/helper.js
index 64fe5bd07..a01ea1e53 100644
--- a/test/helper.js
+++ b/test/helper.js
@@ -1,5 +1,11 @@
+var log = require('loglevel')
+log.setDefaultLevel(5)
+
require('jsdom-global')()
window.localStorage = {}
if (!('crypto' in window)) { window.crypto = {} }
window.crypto.getRandomValues = require('polyfill-crypto.getrandomvalues')
+
+window.log = log
+global.log = log