1
0
mirror of synced 2025-12-23 11:54:18 -05:00

Fix tests

This commit is contained in:
Matt Pollard
2022-06-08 14:26:19 +02:00
parent 7cd29d409d
commit 0984f7dae6

View File

@@ -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)
})