You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2022/06/08 06:54:58 UTC

[echarts] 01/01: test: update visual test cdn to be unpkg

This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch test-cdn
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit c82eb4157ad2ec2ee67bf34bd238bba01d0c57bf
Author: Ovilia <zw...@gmail.com>
AuthorDate: Wed Jun 8 14:54:01 2022 +0800

    test: update visual test cdn to be unpkg
---
 test/runTest/util.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/runTest/util.js b/test/runTest/util.js
index b116c4920..4d892b344 100644
--- a/test/runTest/util.js
+++ b/test/runTest/util.js
@@ -76,8 +76,9 @@ module.exports.prepareEChartsLib = function (version) {
             const isNightly = version.includes('-dev');
             const packageName = isNightly ? 'echarts-nightly' : 'echarts'
 
-            console.log(`Downloading ${packageName}@${version} from `, `https://cdn.jsdelivr.net/npm/${packageName}@${version}/dist/echarts.js`);
-            https.get(`https://cdn.jsdelivr.net/npm/${packageName}@${version}/dist/echarts.js`, response => {
+            const url = `https://unpkg.com/${packageName}@${version}/dist/echarts.js`;
+            console.log(`Downloading ${packageName}@${version} from ${url}`, );
+            https.get(url, response => {
                 response.pipe(file);
 
                 file.on('finish', () => {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org