-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1313 from carloslancha/develop
v2.4.1 CHANGELOG
- Loading branch information
Showing
11 changed files
with
242 additions
and
821 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"presets": [ | ||
"env", | ||
"stage-3", | ||
"react" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/clay-charts-react/src/__tests__/__snapshots__/index.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Chart should render named chart without js exception 1`] = ` | ||
<div | ||
className="bar-chart" | ||
style={undefined} | ||
/> | ||
`; | ||
|
||
exports[`Chart should render with type without js exception 1`] = ` | ||
<div | ||
className="bar-chart" | ||
style={undefined} | ||
/> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import 'raf/polyfill'; // React depends on requestAnimationFrame | ||
|
||
import React from 'react'; | ||
import TestRenderer from 'react-test-renderer'; | ||
import Chart, {BarChart} from '../index'; | ||
|
||
const COLUMNS = [['data1', 100, 20, 30], ['data2', 20, 70, 100]]; | ||
|
||
describe('Chart', function() { | ||
it('should render named chart without js exception', () => { | ||
const testRenderer = TestRenderer.create( | ||
<BarChart | ||
className="bar-chart" | ||
data={{ | ||
columns: COLUMNS, | ||
}} | ||
/> | ||
); | ||
|
||
expect(testRenderer.toJSON()).toMatchSnapshot(); | ||
}); | ||
|
||
it('should render with type without js exception', async () => { | ||
const testRenderer = TestRenderer.create( | ||
<Chart | ||
className="bar-chart" | ||
data={{ | ||
columns: [['data1', 30], ['data2', 70]], | ||
type: 'donut', | ||
}} | ||
/> | ||
); | ||
|
||
expect(testRenderer.toJSON()).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"presets": [ | ||
"env" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import ClayActionsDropdown from '../ClayActionsDropdown'; | ||
import ClayCreationMenuDropdown from '../ClayCreationMenuDropdown'; | ||
import ClayDropdownBase from '../ClayDropdownBase'; | ||
import ClayDropdownItem from '../ClayDropdownItem'; | ||
import ClayDropdown from '../ClayDropdown'; | ||
|
||
export { | ||
ClayActionsDropdown, | ||
ClayCreationMenuDropdown, | ||
ClayDropdown, | ||
ClayDropdownBase, | ||
ClayDropdownItem, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.