Skip to content

Commit c44ce87

Browse files
committed
Merge branch 'copilot-ga-megabranch' of github.com:github/docs-internal into copilot-ga-megabranch
2 parents 41bc8d0 + beefde4 commit c44ce87

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

tests/routing/redirects.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,19 @@ describe('redirects', () => {
3333

3434
test('dotcom homepage page.buildRedirects()', async () => {
3535
const page = await Page.init({
36-
relativePath: 'github/index.md',
36+
relativePath: 'issues/index.md',
3737
basePath: path.join(__dirname, '../../content'),
3838
languageCode: 'en',
3939
})
4040
const pageRedirects = page.buildRedirects()
41-
expect(pageRedirects['/articles']).toBe('/github')
42-
expect(pageRedirects['/common-issues-and-questions']).toBe('/github')
43-
expect(pageRedirects[`/enterprise-server@${enterpriseServerReleases.latest}/articles`]).toBe(
44-
`/enterprise-server@${enterpriseServerReleases.latest}`
45-
)
41+
expect(pageRedirects['/about-issues']).toBe('/issues')
42+
expect(pageRedirects['/creating-an-issue']).toBe('/issues')
4643
expect(
47-
pageRedirects[
48-
`/enterprise-server@${enterpriseServerReleases.latest}/common-issues-and-questions`
49-
]
50-
).toBe(`/enterprise-server@${enterpriseServerReleases.latest}`)
44+
pageRedirects[`/enterprise-server@${enterpriseServerReleases.latest}/about-issues`]
45+
).toBe(`/enterprise-server@${enterpriseServerReleases.latest}/issues`)
46+
expect(
47+
pageRedirects[`/enterprise-server@${enterpriseServerReleases.latest}/creating-an-issue`]
48+
).toBe(`/enterprise-server@${enterpriseServerReleases.latest}/issues`)
5149
})
5250

5351
test('converts single `redirect_from` strings values into arrays', async () => {

0 commit comments

Comments
 (0)