1
0
mirror of synced 2025-12-25 02:17:36 -05:00
This commit is contained in:
Sarah Schneider
2021-02-26 13:23:55 -05:00
parent 2c8902f826
commit d3617af76a

View File

@@ -159,6 +159,12 @@ describe('redirects', () => {
expect(res.statusCode).toBe(301)
expect(res.headers.location).toBe(japaneseEnterpriseHome)
})
test('hardcoded @latest redirects to latest version', async () => {
const res = await get('/en/enterprise-server@latest')
expect(res.statusCode).toBe(301)
expect(res.headers.location).toBe(enterpriseHome)
})
})
describe('2.13+ deprecated enterprise', () => {