aboutsummaryrefslogtreecommitdiffstats
path: root/test/helper.js
blob: a01ea1e53a489a5199cd581bb82a82accd1ba729 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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