Skip to content

Commit 29412b3

Browse files
committed
Fix linting errors
1 parent 7882732 commit 29412b3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/__tests__/ChartTests.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ChartComponent from "../Chart";
1+
import ChartComponent from '../Chart';
22

33
describe('Chart re-rendering', () => {
44

@@ -16,33 +16,33 @@ describe('Chart re-rendering', () => {
1616

1717
it('required when data is changed in an inner object/array of the data', () => {
1818
const originalData = {
19-
"data": {
20-
"datasets": [
19+
'data': {
20+
'datasets': [
2121
{
22-
"data": [
22+
'data': [
2323
122968
2424
]
2525
},
2626
{
27-
"data": [
27+
'data': [
2828
14738
2929
]
3030
}
3131
]
3232
}
33-
}
33+
};
3434
// The new data has only one data set instead of two
3535
const newData = {
36-
"data": {
37-
"datasets": [
36+
'data': {
37+
'datasets': [
3838
{
39-
"data": [
39+
'data': [
4040
122968
4141
]
4242
}
4343
]
4444
}
45-
}
45+
};
4646
const chart = new ChartComponent(originalData);
4747
const updateRequired = chart.shouldComponentUpdate(newData);
4848
expect(updateRequired).toBeTruthy();

0 commit comments

Comments
 (0)