From 8b62a8bec288120eee71523886f4c2df83b136ff Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 18 Apr 2016 11:31:06 -0700 Subject: Fix plugin tests --- test/helper.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/helper.js') 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') -- cgit