feat(api): allow HOME_LOCATION origin in development (#61003)

This commit is contained in:
Oliver Eyton-Williams
2025-06-25 08:30:24 +02:00
committed by GitHub
parent a81293c520
commit 87c274a9ef
5 changed files with 18 additions and 13 deletions

View File

@@ -107,7 +107,7 @@ describe('auth0 plugin', () => {
});
expect(res.headers.location).toMatch(
`${HOME_LOCATION}/learn?${formatMessage({ type: 'danger', content: 'flash.generic-error' })}`
`${HOME_LOCATION}/?${formatMessage({ type: 'danger', content: 'flash.generic-error' })}`
);
expect(res.statusCode).toBe(302);
});
@@ -119,7 +119,7 @@ describe('auth0 plugin', () => {
});
expect(res.headers.location).toMatch(
`${HOME_LOCATION}/learn?${formatMessage({ type: 'danger', content: 'flash.generic-error' })}`
`${HOME_LOCATION}/?${formatMessage({ type: 'danger', content: 'flash.generic-error' })}`
);
expect(res.statusCode).toBe(302);
});