1
0
mirror of synced 2025-12-25 02:17:36 -05:00

add message to test output

This commit is contained in:
Sarah Schneider
2021-01-25 13:10:08 -05:00
parent f01b56813f
commit 0dbfa96b65

View File

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