mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-30 16:01:14 -04:00
feat(api): allow HOME_LOCATION origin in development (#61003)
This commit is contained in:
committed by
GitHub
parent
a81293c520
commit
87c274a9ef
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user