aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--package.json1
-rw-r--r--test/unit/config-manager-test.js4
2 files changed, 4 insertions, 1 deletions
diff --git a/package.json b/package.json
index 23070cceb..3a02c64df 100644
--- a/package.json
+++ b/package.json
@@ -117,6 +117,7 @@
"gulp-util": "^3.0.7",
"gulp-watch": "^4.3.5",
"gulp-zip": "^3.2.0",
+ "isomorphic-fetch": "^2.2.1",
"jsdom": "^8.1.0",
"jsdom-global": "^1.7.0",
"jshint-stylish": "~0.1.5",
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() {