Skip to content

Commit

Permalink
test(frontend-proxy): adapt code after msw improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
hugotiburtino committed Nov 14, 2024
1 parent fa409e2 commit c294787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/frontend-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test('reports to sentry when frontend responded with redirect', async () => {
const env = localTestEnvironment()
const redirectResponse = await env.fetch({
subdomain: 'en',
pathname: '/math',
pathname: '/api/.ory/login',
})

expect(redirectResponse.status).toEqual(302)
Expand All @@ -68,7 +68,7 @@ test('reports to sentry when frontend responded with redirect', async () => {
context: {
backendUrl: env.createUrl({
subdomain: 'frontend',
pathname: '/en/math',
pathname: '/api/.ory/login',
}),
location: 'https://frontend.serlo.org/',
},
Expand Down

0 comments on commit c294787

Please sign in to comment.