@@ -6,7 +6,7 @@ import { loadPages } from '../../lib/page-data.js'
6
6
import CspParse from 'csp-parse'
7
7
import { productMap } from '../../lib/all-products.js'
8
8
import { SURROGATE_ENUMS } from '../../middleware/set-fastly-surrogate-key.js'
9
- import { jest } from '@jest/globals'
9
+ import { describe , jest } from '@jest/globals'
10
10
import { languageKeys } from '../../lib/languages.js'
11
11
12
12
const AZURE_STORAGE_URL = 'githubdocs.azureedge.net'
@@ -1101,3 +1101,22 @@ describe('index pages', () => {
1101
1101
expect ( $ ( `a[href^="${ installationLatest } /"]` ) . length ) . toBeGreaterThan ( 0 )
1102
1102
} )
1103
1103
} )
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