Skip to content

Commit e69144b

Browse files
authored
temporarily re-introduct includes/rest_operations_at_current_path.html (#25719)
1 parent e81b8b3 commit e69144b

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% comment %}
2+
We need this file to exist until all translations have caught up.
3+
You can delete this when you can no longer find any
4+
references at all for 'rest_operations_at_current_path' anywhere.
5+
{% endcomment %}

tests/rendering/server.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { loadPages } from '../../lib/page-data.js'
66
import CspParse from 'csp-parse'
77
import { productMap } from '../../lib/all-products.js'
88
import { SURROGATE_ENUMS } from '../../middleware/set-fastly-surrogate-key.js'
9-
import { jest } from '@jest/globals'
9+
import { describe, jest } from '@jest/globals'
1010
import { languageKeys } from '../../lib/languages.js'
1111

1212
const AZURE_STORAGE_URL = 'githubdocs.azureedge.net'
@@ -1101,3 +1101,22 @@ describe('index pages', () => {
11011101
expect($(`a[href^="${installationLatest}/"]`).length).toBeGreaterThan(0)
11021102
})
11031103
})
1104+
1105+
describe('REST reference pages', () => {
1106+
test('view the rest/repos page in English', async () => {
1107+
const res = await get('/en/rest/reference/repos')
1108+
expect(res.statusCode).toBe(200)
1109+
})
1110+
test('view the rest/repos page in Japanese', async () => {
1111+
const res = await get('/ja/rest/reference/repos')
1112+
expect(res.statusCode).toBe(200)
1113+
})
1114+
test('deeper pages in English', async () => {
1115+
const res = await get('/ja/enterprise-cloud@latest/rest/reference/code-scanning')
1116+
expect(res.statusCode).toBe(200)
1117+
})
1118+
test('deeper pages in Japanese', async () => {
1119+
const res = await get('/en/enterprise-cloud@latest/rest/reference/code-scanning')
1120+
expect(res.statusCode).toBe(200)
1121+
})
1122+
})

0 commit comments

Comments
 (0)