diff options
Diffstat (limited to 'test/helper.js')
-rw-r--r-- | test/helper.js | 3 |
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') |