From 2baedc56eafcc0e26fdaab1706953dc2d949570d Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 20 Feb 2017 23:42:40 -0800 Subject: [PATCH] Add log global to test suite --- test/helper.js | 6 ++++++ 1 file changed, 6 insertions(+) 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