Skip to content

Commit

Permalink
Charts: Fix ChartThreshold props (#3024)
Browse files Browse the repository at this point in the history
* chore(charts): moved ChartThreshold to its own example

Fixes #3014

* fix(charts): support style and theme props

Fixes #3022
  • Loading branch information
dlabrecq authored and tlabaj committed Oct 15, 2019
1 parent 8d3ad74 commit 42148e1
Show file tree
Hide file tree
Showing 5 changed files with 448 additions and 42 deletions.
Expand Up @@ -3,7 +3,6 @@ import { shallow } from 'enzyme';
import { Chart } from '../Chart';
import { ChartGroup } from '../ChartGroup';
import { ChartThreshold } from './ChartThreshold';
import { ChartThemeColor, ChartThemeVariant } from '../ChartTheme';

Object.values([true, false]).forEach(isRead => {
test('ChartThreshold', () => {
Expand All @@ -22,7 +21,7 @@ test('renders component data', () => {
const view = shallow(
<Chart minDomain={{ y: 0 }} height={200} width={200}>
<ChartGroup>
<ChartThreshold data={data} themeColor={ChartThemeColor.orange} themeVariant={ChartThemeVariant.light} />
<ChartThreshold data={data} />
</ChartGroup>
</Chart>
);
Expand Down

0 comments on commit 42148e1

Please sign in to comment.