From 0984f7dae674796bbb1df6df78defc33cc79bddc Mon Sep 17 00:00:00 2001 From: Matt Pollard Date: Wed, 8 Jun 2022 14:26:19 +0200 Subject: [PATCH] Fix tests --- tests/routing/redirects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/routing/redirects.js b/tests/routing/redirects.js index ee745608dd..160d48cdd0 100644 --- a/tests/routing/redirects.js +++ b/tests/routing/redirects.js @@ -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) })