aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-11 04:39:01 +0800
committerkumavis <aaron@kumavis.me>2017-01-11 04:39:01 +0800
commitbd382f4705ffdc10d193d02dfaa9d1b5ff2f1488 (patch)
treeefd2a3f62355afbbd93ce07944b8289b05d43943 /test
parentb301c0fb48f8a6ba464c7ed48d009166ea1fc230 (diff)
downloadtangerine-wallet-browser-bd382f4705ffdc10d193d02dfaa9d1b5ff2f1488.tar
tangerine-wallet-browser-bd382f4705ffdc10d193d02dfaa9d1b5ff2f1488.tar.gz
tangerine-wallet-browser-bd382f4705ffdc10d193d02dfaa9d1b5ff2f1488.tar.bz2
tangerine-wallet-browser-bd382f4705ffdc10d193d02dfaa9d1b5ff2f1488.tar.lz
tangerine-wallet-browser-bd382f4705ffdc10d193d02dfaa9d1b5ff2f1488.tar.xz
tangerine-wallet-browser-bd382f4705ffdc10d193d02dfaa9d1b5ff2f1488.tar.zst
tangerine-wallet-browser-bd382f4705ffdc10d193d02dfaa9d1b5ff2f1488.zip
tests - add fetch polyfill
Diffstat (limited to 'test')
-rw-r--r--test/unit/config-manager-test.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/config-manager-test.js b/test/unit/config-manager-test.js
index 075abbe65..77d431d5f 100644
--- a/test/unit/config-manager-test.js
+++ b/test/unit/config-manager-test.js
@@ -1,8 +1,10 @@
+// polyfill fetch
+global.fetch = global.fetch || require('isomorphic-fetch')
const assert = require('assert')
const extend = require('xtend')
const rp = require('request-promise')
const nock = require('nock')
-var configManagerGen = require('../lib/mock-config-manager')
+const configManagerGen = require('../lib/mock-config-manager')
const STORAGE_KEY = 'metamask-persistance-key'
describe('config-manager', function() {