Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

enterprise-release-notes.js 993 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  1. const { get } = require('../helpers/supertest')
  2. describe('enterprise release notes', () => {
  3. jest.setTimeout(60 * 1000)
  4. beforeAll(async () => {
  5. // The first page load takes a long time so let's get it out of the way in
  6. // advance to call out that problem specifically rather than misleadingly
  7. // attributing it to the first test
  8. await get('/')
  9. })
  10. it('redirects to the release notes on enterprise.github.com if none are present for this version here', async () => {
  11. const res = await get('/en/enterprise-server@2.19/admin/release-notes')
  12. expect(res.statusCode).toBe(302)
  13. expect(res.headers.location).toBe('https://enterprise.github.com/releases/2.19.0/notes')
  14. })
  15. // We can't write this test until we have real release notes
  16. it('renders the release-notes layout if this version\'s release notes are in this repo', async () => {
  17. const res = await get('/en/enterprise-server@2.22/admin/release-notes')
  18. expect(res.statusCode).toBe(200)
  19. })
  20. })
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...