Add log global to test suite

feature/default_network_editable
Dan Finlay 8 years ago
parent 05080d1c50
commit 2baedc56ea
  1. 6
      test/helper.js

@ -1,5 +1,11 @@
var log = require('loglevel')
log.setDefaultLevel(5)
require('jsdom-global')() require('jsdom-global')()
window.localStorage = {} window.localStorage = {}
if (!('crypto' in window)) { window.crypto = {} } if (!('crypto' in window)) { window.crypto = {} }
window.crypto.getRandomValues = require('polyfill-crypto.getrandomvalues') window.crypto.getRandomValues = require('polyfill-crypto.getrandomvalues')
window.log = log
global.log = log

Loading…
Cancel
Save