mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 11:28:51 +01:00
Add log global to test suite
This commit is contained in:
parent
05080d1c50
commit
2baedc56ea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user