Skip to content

Commit dd04021

Browse files
committed
feat: support new chart
- RadialBarChart - BidirectionalBarChart
1 parent ef427f4 commit dd04021

File tree

9 files changed

+35711
-4277
lines changed

9 files changed

+35711
-4277
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`BidirectionalBarChart should render without crashed 1`] = `<div />`;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`RadialBarChart should render without crashed 1`] = `<div />`;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from 'react'
2+
import { create } from 'react-test-renderer'
3+
import BidirectionalBarChart from '../../src/plots/bidirectional-bar'
4+
5+
describe('BidirectionalBarChart', () => {
6+
test('should render without crashed', () => {
7+
const renderer = create(
8+
<BidirectionalBarChart xField="a" yField={['b', 'c']} data={[]} />
9+
)
10+
11+
expect(renderer.toJSON()).toMatchSnapshot()
12+
})
13+
})
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react'
2+
import { create } from 'react-test-renderer'
3+
import RadialBarChart from '../../src/plots/radial-bar'
4+
5+
describe('RadialBarChart', () => {
6+
test('should render without crashed', () => {
7+
const renderer = create(<RadialBarChart data={[]} />)
8+
9+
expect(renderer.toJSON()).toMatchSnapshot()
10+
})
11+
})

0 commit comments

Comments
 (0)