Skip to content

Commit a28c7ac

Browse files
committed
add test
1 parent dce6e7d commit a28c7ac

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/routing/deprecated-enterprise-versions.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ describe('enterprise deprecation', () => {
3030
expect(res.headers.location).toBe('/en/enterprise/2.15/user/articles/viewing-contributions-on-your-profile')
3131
})
3232

33+
test('can access redirects from redirects.json in deprecated enterprise content >2.17', async () => {
34+
const res = await get('/enterprise/2.19/admin/categories/time')
35+
expect(res.statusCode).toBe(301)
36+
expect(res.headers.location).toBe('/en/enterprise-server@2.19/admin/configuration/configuring-time-synchronization')
37+
})
38+
3339
test('handles requests for deprecated Enterprise pages ( >=2.13 )', async () => {
3440
expect(enterpriseServerReleases.deprecated.includes('2.13')).toBe(true)
3541
const $ = await getDOM('/en/enterprise/2.13/user/articles/about-branches')

0 commit comments

Comments
 (0)