Merge pull request #9790 from overleaf/ds-bug-fix-fetchmock

Bug fix- added a missing fetchMock in a test

GitOrigin-RevId: c0bb97f6874afa125ea0e966ff819b6fa7e245c9
This commit is contained in:
Tim Down 2022-10-03 16:22:02 +01:00 committed by Copybot
parent 5aa325cf51
commit 188e8c99a7

View file

@ -95,6 +95,8 @@ describe('<EmailsSection />', function () {
it('renders "Start adding your address" until a valid email is typed', async function () {
fetchMock.get('/user/emails?ensureAffiliation=true', [])
fetchMock.get(`/institutions/domains?hostname=email.com&limit=1`, 200)
fetchMock.get(`/institutions/domains?hostname=email&limit=1`, 200)
render(<EmailsSection />)
const addAnotherEmailBtn = (await screen.findByRole('button', {