File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- import ChartComponent from " ../Chart" ;
1+ import ChartComponent from ' ../Chart' ;
22
33describe ( '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 ( ) ;
You can’t perform that action at this time.
0 commit comments