Skip to content

Commit 0dbfa96

Browse files
committed
add message to test output
1 parent f01b568 commit 0dbfa96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/routing/developer-site-redirects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ describe('developer redirects', () => {
120120
newPath = newPath.replace('/enterprise-server/', `/enterprise-server@${enterpriseServerReleases.latest}/`)
121121
const res = await get(oldPath)
122122
expect(res.statusCode, `${oldPath} did not redirect to ${newPath}`).toBe(301)
123-
expect(res.headers.location).toBe(newPath)
123+
expect(res.headers.location, `${oldPath} did not redirect to ${newPath}`).toBe(newPath)
124124
}
125125
)
126126
})
@@ -136,7 +136,7 @@ describe('developer redirects', () => {
136136
newPath = newPath.replace('/enterprise-server/', `/enterprise-server@${enterpriseServerReleases.latest}/`)
137137
const res = await get(oldPath)
138138
expect(res.statusCode, `${oldPath} did not redirect to ${newPath}`).toBe(301)
139-
expect(res.headers.location).toBe(newPath)
139+
expect(res.headers.location, `${oldPath} did not redirect to ${newPath}`).toBe(newPath)
140140
}
141141
)
142142
})

0 commit comments

Comments
 (0)