test - unit - move fetch polyfill to helper

feature/default_network_editable
kumavis 7 years ago
parent 380964a687
commit 630e2300f4
  1. 3
      test/helper.js
  2. 3
      test/unit/app/controllers/currency-controller-test.js
  3. 3
      test/unit/config-manager-test.js

@ -14,6 +14,9 @@ global.log = log
// polyfills // polyfills
// //
// fetch
global.fetch = require('isomorphic-fetch')
// dom // dom
require('jsdom-global')() require('jsdom-global')()

@ -1,6 +1,3 @@
// polyfill fetch
global.fetch = global.fetch || require('isomorphic-fetch')
const assert = require('assert') const assert = require('assert')
const nock = require('nock') const nock = require('nock')
const CurrencyController = require('../../../../app/scripts/controllers/currency') const CurrencyController = require('../../../../app/scripts/controllers/currency')

@ -1,6 +1,3 @@
// polyfill fetch
global.fetch = global.fetch || require('isomorphic-fetch')
const assert = require('assert') const assert = require('assert')
const configManagerGen = require('../lib/mock-config-manager') const configManagerGen = require('../lib/mock-config-manager')

Loading…
Cancel
Save