зеркало из https://github.com/github/docs.git
Fix tests
This commit is contained in:
Родитель
ae34831360
Коммит
2625bed686
|
@ -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)
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче