@react-magma/charts 2.0.1-next.0 → 2.0.1-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-magma/charts",
|
|
3
|
-
"version": "2.0.1-next.
|
|
3
|
+
"version": "2.0.1-next.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react": "^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
32
32
|
"react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
33
33
|
"react-magma-dom": "^3.2.1-next.0",
|
|
34
|
-
"react-magma-icons": "
|
|
34
|
+
"react-magma-icons": "2.3.6"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"victory": "^35.4.12"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@emotion/styled": "^10.0.27",
|
|
42
42
|
"react": "^16.10.0",
|
|
43
43
|
"react-dom": "^16.10.0",
|
|
44
|
-
"react-magma-dom": "^3.2.1-next.
|
|
45
|
-
"react-magma-icons": "
|
|
44
|
+
"react-magma-dom": "^3.2.1-next.5",
|
|
45
|
+
"react-magma-icons": "2.3.6"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -29,7 +29,7 @@ describe('Chart Data Table', () => {
|
|
|
29
29
|
|
|
30
30
|
it('should render chart data with x tick values and an x tick format function', () => {
|
|
31
31
|
const label = '2019 Annual Sales Figures';
|
|
32
|
-
const { getByText
|
|
32
|
+
const { getByText } = render(
|
|
33
33
|
<ChartDataTable
|
|
34
34
|
data={basicData}
|
|
35
35
|
xData={{
|
|
@@ -97,8 +97,7 @@ describe('Chart Data Table', () => {
|
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
it('should render column header for x values using the x key value when no label is provided', () => {
|
|
100
|
-
const
|
|
101
|
-
const { getByText, getAllByText } = render(
|
|
100
|
+
const { getByText } = render(
|
|
102
101
|
<ChartDataTable
|
|
103
102
|
data={explicitData}
|
|
104
103
|
xData={{
|
|
@@ -117,7 +116,7 @@ describe('Chart Data Table', () => {
|
|
|
117
116
|
|
|
118
117
|
it('should render chart data with x tick values and an x tick format function', () => {
|
|
119
118
|
const label = '2019 Annual Sales Figures';
|
|
120
|
-
const { getByText
|
|
119
|
+
const { getByText } = render(
|
|
121
120
|
<ChartDataTable
|
|
122
121
|
data={explicitData}
|
|
123
122
|
xData={{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { render, fireEvent
|
|
2
|
+
import { render, fireEvent } from '@testing-library/react';
|
|
3
3
|
import userEvent from '@testing-library/user-event';
|
|
4
4
|
import { basicData, explicitData } from './test/exampleChartData';
|
|
5
5
|
import { Chart } from '.';
|