Skip to content

Commit

Permalink
修改深度图测试
Browse files Browse the repository at this point in the history
  • Loading branch information
zcZhang123 committed Jul 4, 2019
1 parent 842dfbd commit 19a579d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion src/js/SetDepthChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class DepthChart {
bottom: 20,
width: depthSize.width / 2,
containLabel: true
}]
}];
return grid;
}

Expand Down
10 changes: 0 additions & 10 deletions test/unit/specs/Chart.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,6 @@ describe('test Chart', () => {
expect(depth).not.toBeNull()
})

// 测试成交量绘制方法
it('test getMobileTipsData if platform is mobile and chartType is depth', () => {
let depth = new ChartController(klineConfig)
const element = document.createElement('div');
depth.initDepth(element)
depth.setDepthOption(depthData)
let tipsData = depth.getMobileTipsData()
expect(tipsData).toBe(undefined)
})

// 测试交易量图绘制方法
let volumeConfig = {
platform: 'pc',
Expand Down

0 comments on commit 19a579d

Please sign in to comment.