1 Star 0 Fork 35

匡胜昆/G2Plot

forked from antv/G2Plot 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
issue-2203-spec.ts 785 Bytes
一键复制 编辑 原始数据 按行查看 历史
hustcc 提交于 2022-11-11 19:01 +08:00 . feat: migrate to dumi-theme-antv from gatsby (#3388)
import { Progress, RingProgress } from '../../src';
import { createDiv } from '../utils/dom';
describe('#2203', () => {
it('ringProgress', () => {
const ringProgress = new RingProgress(createDiv(), {
height: 100,
width: 100,
autoFit: false,
percent: NaN,
color: ['#5B8FF9', '#E8EDF3'],
});
ringProgress.render();
expect(ringProgress.chart.getOptions().data[0].percent).toBe(0);
ringProgress.destroy();
});
it('Progress', () => {
const progress = new Progress(createDiv(), {
height: 10,
width: 100,
autoFit: false,
percent: NaN,
color: ['#5B8FF9', '#E8EDF3'],
});
progress.render();
expect(progress.chart.getOptions().data[0].percent).toBe(0);
progress.destroy();
});
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/17311824/g2plot.git
git@gitee.com:17311824/g2plot.git
17311824
g2plot
G2Plot
master

搜索帮助