@@ -44,9 +44,9 @@ test('buildCdnUrl rewrites the OSS endpoint URL to the public CDN URL', () => {
4444 buildCdnUrl (
4545 'https://flashcat-docs.oss-cn-hangzhou.aliyuncs.com/docs/api-reference/openapi.en.json' ,
4646 'flashcat-docs.oss-cn-hangzhou.aliyuncs.com' ,
47- 'https://download .flashcat.cloud'
47+ 'https://docs-cdn .flashcat.cloud'
4848 ) ,
49- 'https://download .flashcat.cloud/docs/api-reference/openapi.en.json'
49+ 'https://docs-cdn .flashcat.cloud/docs/api-reference/openapi.en.json'
5050 ) ;
5151} ) ;
5252
@@ -78,7 +78,7 @@ test('uploadOpenapiJsonFiles uploads every JSON file and refreshes each CDN URL'
7878 CDN_BUCKET : 'bucket' ,
7979 CDN_REGION : 'oss-cn-hangzhou' ,
8080 CDN_ENDPOINT : 'bucket.oss-cn-hangzhou.aliyuncs.com' ,
81- CDN_URL : 'https://download .flashcat.cloud' ,
81+ CDN_URL : 'https://docs-cdn .flashcat.cloud' ,
8282 CDN_DIR : '/docs'
8383 } ;
8484 const ossClient = {
@@ -110,8 +110,8 @@ test('uploadOpenapiJsonFiles uploads every JSON file and refreshes each CDN URL'
110110 assert . deepEqual (
111111 refreshed ,
112112 [
113- 'https://download .flashcat.cloud/docs/api-reference/openapi.en.json' ,
114- 'https://download .flashcat.cloud/docs/api-reference/openapi.zh.json'
113+ 'https://docs-cdn .flashcat.cloud/docs/api-reference/openapi.en.json' ,
114+ 'https://docs-cdn .flashcat.cloud/docs/api-reference/openapi.zh.json'
115115 ]
116116 ) ;
117117 assert . equal ( uploaded [ 0 ] . options . headers [ 'Content-Type' ] , 'application/json; charset=utf-8' ) ;
0 commit comments