diff --git a/tests/routing/developer-site-redirects.js b/tests/routing/developer-site-redirects.js index 9cf4673d00..0318c8c96e 100644 --- a/tests/routing/developer-site-redirects.js +++ b/tests/routing/developer-site-redirects.js @@ -120,7 +120,7 @@ describe('developer redirects', () => { newPath = newPath.replace('/enterprise-server/', `/enterprise-server@${enterpriseServerReleases.latest}/`) const res = await get(oldPath) expect(res.statusCode, `${oldPath} did not redirect to ${newPath}`).toBe(301) - expect(res.headers.location).toBe(newPath) + expect(res.headers.location, `${oldPath} did not redirect to ${newPath}`).toBe(newPath) } ) }) @@ -136,7 +136,7 @@ describe('developer redirects', () => { newPath = newPath.replace('/enterprise-server/', `/enterprise-server@${enterpriseServerReleases.latest}/`) const res = await get(oldPath) expect(res.statusCode, `${oldPath} did not redirect to ${newPath}`).toBe(301) - expect(res.headers.location).toBe(newPath) + expect(res.headers.location, `${oldPath} did not redirect to ${newPath}`).toBe(newPath) } ) })