diff --git a/ui/features/account_settings/react/components/__tests__/ViolationTray.test.js b/ui/features/account_settings/react/components/__tests__/ViolationTray.test.js index 6975f3db063d..a7657473417d 100644 --- a/ui/features/account_settings/react/components/__tests__/ViolationTray.test.js +++ b/ui/features/account_settings/react/components/__tests__/ViolationTray.test.js @@ -32,6 +32,7 @@ describe('Violation Tray', () => { }) it('displays a spinner when loading data', async () => { + fetch.mockResponse(JSON.stringify([])) const {findByText} = render() // Even though there isn't an expect here... it's functionally the same, // if it doesn't find it... the test will fail :)