From 0dbfa96b65094de05f8fc4b084de8b504e3347bf Mon Sep 17 00:00:00 2001 From: Sarah Schneider Date: Mon, 25 Jan 2021 13:10:08 -0500 Subject: [PATCH] add message to test output --- tests/routing/developer-site-redirects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } ) })