mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
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:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user