Skip to content

Commit d9414de

Browse files
committed
test: Fix redirects tests
1 parent 8c50b80 commit d9414de

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

__tests__/redirects.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,12 @@ test('de.serlo.org/datenschutz', async () => {
4646
})
4747

4848
describe('Imprint', () => {
49-
test.each(['/impressum', '/imprint', '/legal'])(
50-
'de.serlo.org%s',
51-
async (pathname) => {
52-
const response = await env.fetch({ subdomain: 'de', pathname })
49+
test.each(['/impressum', '/imprint'])('de.serlo.org%s', async (pathname) => {
50+
const response = await env.fetch({ subdomain: 'de', pathname })
5351

54-
const target = 'https://chancenwerk.de/impressum/'
55-
expectToBeRedirectTo(response, target, 302)
56-
},
57-
)
52+
const target = 'https://de.serlo.org/legal'
53+
expectToBeRedirectTo(response, target, 301)
54+
})
5855
})
5956

6057
test('de.serlo.org/nutzungsbedingungen ', async () => {

0 commit comments

Comments
 (0)