This commit is contained in:
Matt Pollard 2022-06-08 14:26:19 +02:00
Родитель ae34831360
Коммит 2625bed686
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -425,7 +425,7 @@ describe('redirects', () => {
})
describe('enterprise user homepage', () => {
const enterpriseUser = `/en/enterprise-server@${enterpriseServerReleases.latest}/github`
const enterpriseUser = `/en/enterprise-server@${enterpriseServerReleases.latest}`
const japaneseEnterpriseUser = enterpriseUser.replace('/en/', '/ja/')
test('no product redirects to GitHub.com product', async () => {
@ -435,7 +435,7 @@ describe('redirects', () => {
})
test('no language code redirects to english', async () => {
const res = await get(`/enterprise/${enterpriseServerReleases.latest}/user/github`)
const res = await get(`/enterprise/${enterpriseServerReleases.latest}/user`)
expect(res.statusCode).toBe(302)
expect(res.headers.location).toBe(enterpriseUser)
})