Fix tests
This commit is contained in:
@@ -425,7 +425,7 @@ describe('redirects', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
describe('enterprise user homepage', () => {
|
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/')
|
const japaneseEnterpriseUser = enterpriseUser.replace('/en/', '/ja/')
|
||||||
|
|
||||||
test('no product redirects to GitHub.com product', async () => {
|
test('no product redirects to GitHub.com product', async () => {
|
||||||
@@ -435,7 +435,7 @@ describe('redirects', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('no language code redirects to english', async () => {
|
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.statusCode).toBe(302)
|
||||||
expect(res.headers.location).toBe(enterpriseUser)
|
expect(res.headers.location).toBe(enterpriseUser)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user