spec: Mock fetch on global

refs COREFE-214

Test Plan:
  - Specs pass

flag = none

Change-Id: I6c7cbcb6fdc6771e56ff78b37a532948c19610c6
Reviewed-on: https://gerrit.instructure.com/205825
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
This commit is contained in:
Clay Diffrient 2019-08-20 11:02:26 -06:00
parent aaa4f01c0c
commit d2c7180e12
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ import Adapter from 'enzyme-adapter-react-16'
const errorsToIgnore = ["Warning: [Focusable] Exactly one tabbable child is required (0 found)."];
window.fetch = require('jest-fetch-mock')
global.fetch = require('jest-fetch-mock')
/* eslint-disable-next-line */
const _consoleDotError = console.error