aboutsummaryrefslogtreecommitdiffstats
path: root/test/helper.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-04-19 02:31:06 +0800
committerDan Finlay <dan@danfinlay.com>2016-04-19 02:31:06 +0800
commit8b62a8bec288120eee71523886f4c2df83b136ff (patch)
tree7ef8147b65ffff6a76d8f6a67327f093098b993f /test/helper.js
parent83b8741bbb335ad1629b72180616835dbb3f5433 (diff)
downloadtangerine-wallet-browser-8b62a8bec288120eee71523886f4c2df83b136ff.tar
tangerine-wallet-browser-8b62a8bec288120eee71523886f4c2df83b136ff.tar.gz
tangerine-wallet-browser-8b62a8bec288120eee71523886f4c2df83b136ff.tar.bz2
tangerine-wallet-browser-8b62a8bec288120eee71523886f4c2df83b136ff.tar.lz
tangerine-wallet-browser-8b62a8bec288120eee71523886f4c2df83b136ff.tar.xz
tangerine-wallet-browser-8b62a8bec288120eee71523886f4c2df83b136ff.tar.zst
tangerine-wallet-browser-8b62a8bec288120eee71523886f4c2df83b136ff.zip
Fix plugin tests
Diffstat (limited to 'test/helper.js')
-rw-r--r--test/helper.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/helper.js b/test/helper.js
index 4c7f8b4c6..64fe5bd07 100644
--- a/test/helper.js
+++ b/test/helper.js
@@ -1,2 +1,5 @@
require('jsdom-global')()
window.localStorage = {}
+
+if (!('crypto' in window)) { window.crypto = {} }
+window.crypto.getRandomValues = require('polyfill-crypto.getrandomvalues')