@@ -6,7 +6,7 @@ import { loadPages } from '../../lib/page-data.js'
66import CspParse from 'csp-parse'
77import { productMap } from '../../lib/all-products.js'
88import { SURROGATE_ENUMS } from '../../middleware/set-fastly-surrogate-key.js'
9- import { jest } from '@jest/globals'
9+ import { describe , jest } from '@jest/globals'
1010import { languageKeys } from '../../lib/languages.js'
1111
1212const 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