From 8d7ffb56c477e9bcef90f75890375e8a84c3a0b4 Mon Sep 17 00:00:00 2001 From: lxfu1 <954055752@qq.com> Date: Wed, 4 Nov 2020 14:58:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E6=8E=89=20log=20=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __tests__/unit/plots/dual-axes/default-options-spec.ts | 1 - __tests__/unit/plots/gauge/index-spec.ts | 1 - scripts/manual.ts | 1 - 3 files changed, 3 deletions(-) diff --git a/__tests__/unit/plots/dual-axes/default-options-spec.ts b/__tests__/unit/plots/dual-axes/default-options-spec.ts index 09bce6ffef..663441d033 100644 --- a/__tests__/unit/plots/dual-axes/default-options-spec.ts +++ b/__tests__/unit/plots/dual-axes/default-options-spec.ts @@ -40,7 +40,6 @@ describe('default options', () => { }); dualAxes.render(); - console.log(dualAxes.chart.getComponents()); // @ts-ignore expect(dualAxes.chart.getScaleByField('date').sync).toBeTruthy(); expect(dualAxes.chart.getScaleByField('date').range.length).toBe(2); diff --git a/__tests__/unit/plots/gauge/index-spec.ts b/__tests__/unit/plots/gauge/index-spec.ts index 7e7d84b48c..11233b04cf 100644 --- a/__tests__/unit/plots/gauge/index-spec.ts +++ b/__tests__/unit/plots/gauge/index-spec.ts @@ -111,7 +111,6 @@ describe('gauge', () => { }); gauge.render(); - console.log(gauge.chart.views[1].getYScales()); // @ts-ignore expect(gauge.chart.views[1].getYScales()[0].ticks).toEqual([0, 0.25, 0.5, 0.75, 1]); expect(gauge.chart.views.length).toBe(2); diff --git a/scripts/manual.ts b/scripts/manual.ts index e24239cffe..e925051679 100644 --- a/scripts/manual.ts +++ b/scripts/manual.ts @@ -11,7 +11,6 @@ const excludeFilesPath = ['gallery']; // 不处理的路径 const includeFiles = ['API.zh.md', 'API.en.md']; const apiGenerator = (sourcePath, targetPath, titlePath) => { - console.log(sourcePath, targetPath); // 内容不多,同步读取即可 const titleInfo = fs.readFileSync(titlePath, 'utf-8'); fs.writeFileSync(targetPath, `${titleInfo}\n`, { encoding: 'utf-8' });