Use nock to intercept http-request instead of mocking fetch diirectly.
Tis will create more reliable tests overall.
This commit also uninstalls whatwg-fetch and replaces it with isomorphic-fetch. I overlooked that whatwg-fetch is not written for node and thus it wont work in unit-tests.
Use nock to intercept http-request instead of mocking fetch diirectly.
Tis will create more reliable tests overall.
This commit also uninstalls whatwg-fetch and replaces it with isomorphic-fetch. I overlooked that whatwg-fetch is not written for node and thus it wont work in unit-tests.