Skip to content

Commit

Permalink
Update tests for data formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
MSDev201 committed Sep 24, 2020
1 parent 36c1f7c commit e2064dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/data_formatter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ describe('DataFormatter', () => {
longitudeField: 'longitude',
},
},
store: {},
};
dataFormatter = new DataFormatter(ctrl);
});
Expand Down Expand Up @@ -96,6 +97,7 @@ describe('DataFormatter', () => {
{ alias: 'IE', datapoints: [1, 2], stats: { total: 3 } },
{ alias: 'SE', datapoints: [2, 3], stats: { total: 5 } },
],
store: {},
};
dataFormatter = new DataFormatter(ctrl);
dataFormatter.setValues(formattedData);
Expand Down Expand Up @@ -130,6 +132,7 @@ describe('DataFormatter', () => {
{ alias: 'ie', datapoints: [1, 2], stats: { total: 3 } },
{ alias: 'se', datapoints: [2, 3], stats: { total: 5 } },
],
store: {},
};
dataFormatter = new DataFormatter(ctrl);
dataFormatter.setValues(formattedData);
Expand Down Expand Up @@ -161,6 +164,7 @@ describe('DataFormatter', () => {
{ alias: 'SX', datapoints: [1, 2], stats: { total: 3 } },
{ alias: 'IE', datapoints: [1, 2], stats: { total: 3 } },
],
store: {},
};
dataFormatter = new DataFormatter(ctrl);
dataFormatter.setValues(formattedData);
Expand All @@ -187,6 +191,7 @@ describe('DataFormatter', () => {
{ alias: 'IE', datapoints: [1.11, 2.22], stats: { total: 3.33 } },
{ alias: 'SE', datapoints: [2.221, 3.331], stats: { total: 5.552 } },
],
store: {},
};
dataFormatter = new DataFormatter(ctrl);
dataFormatter.setValues(formattedData);
Expand All @@ -212,6 +217,7 @@ describe('DataFormatter', () => {
{ alias: 'IE', datapoints: [1.11, 2.22], stats: { total: 3.33 } },
{ alias: 'SE', datapoints: [2.221, 3.331], stats: { total: 5.552 } },
],
store: {},
};
dataFormatter = new DataFormatter(ctrl);
dataFormatter.setValues(formattedData);
Expand Down

0 comments on commit e2064dc

Please sign in to comment.