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

Merge branch 'main' into update-dates-script

This commit is contained in:
Sarah Schneider
2020-12-14 15:21:45 -05:00
committed by GitHub
118 changed files with 1778 additions and 329 deletions

View File

@@ -49,7 +49,8 @@ describe('check for repository references', () => {
'docs/index.yaml',
'lib/excluded-links.js',
'content/early-access',
'data/early-access'
'data/early-access',
'data/release-notes' // These include links to internal issues in Liquid comments
]
})

View File

@@ -11,11 +11,14 @@ describe('enterprise release notes', () => {
})
it('redirects to the release notes on enterprise.github.com if none are present for this version here', async () => {
const res = await get('/en/enterprise-server@2.21/admin/release-notes')
const res = await get('/en/enterprise-server@2.19/admin/release-notes')
expect(res.statusCode).toBe(302)
expect(res.headers.location).toBe('https://enterprise.github.com/releases/2.21.0/notes')
expect(res.headers.location).toBe('https://enterprise.github.com/releases/2.19.0/notes')
})
// We can't write this test until we have real release notes
it.todo('renders the release-notes layout if this version\'s release notes are in this repo')
it('renders the release-notes layout if this version\'s release notes are in this repo', async () => {
const res = await get('/en/enterprise-server@2.22/admin/release-notes')
expect(res.statusCode).toBe(200)
})
})