templates/rails/spec/javascript/testHelper.js in make_it_so-0.4.3 vs templates/rails/spec/javascript/testHelper.js in make_it_so-0.4.5

- old
+ new

@@ -1,14 +1,19 @@ import { shallow, mount } from 'enzyme'; import jasmineEnzyme from 'jasmine-enzyme'; import React from 'react'; -import 'jasmine-ajax'; +import fetchPonyfill from 'fetch-ponyfill'; +const {fetch, Request, Response, Headers} = fetchPonyfill({}); Object.assign(global, { jasmineEnzyme, mount, React, shallow, + fetch, + Request, + Response, + Headers }); beforeEach(() => { jasmineEnzyme(); });