Skip to content

Commit

Permalink
Clean up a few things
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinitto committed Aug 27, 2021
1 parent 5512496 commit 038855e
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 129 deletions.
39 changes: 20 additions & 19 deletions src/__test__/Tab/Visualizations/Text.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,29 +157,30 @@ test("should show dataset name and value if data is isMultiple and append is tru

test("should show dataset name and value if data is isMultiple and append is false", async () => {
const expectedOutput = [
'"Biomass" 1769',
'"Fossil Gas" 14341',
'"Fossil Hard coal" 228',
'"Biomass" 1803',
'"Fossil Gas" 14722',
'"Fossil Hard coal" 231',
'"Fossil Oil" 0',
'"Hydro Pumped Storage" 0',
'"Hydro Run-of-river and poundage" 239',
'"Nuclear" 5245',
'"Other" 141',
'"Solar" 3560',
'"Wind Offshore" 2820.374',
'"Wind Onshore" 1108.301',
'"Hydro Pumped Storage" 297',
'"Hydro Run-of-river and poundage" 395',
'"Nuclear" 5255',
'"Other" 152',
'"Solar" 2840',
'"Wind Offshore" 2850.794',
'"Wind Onshore" 1164.113',
];
const expectedQuantities = [
/^1769$/,
/^14341$/,
/^228$/,
/^1803$/,
/^14722$/,
/^231$/,
/^0$/,
/^239$/,
/^5245$/,
/^141$/,
/^3560$/,
/^2820.374$/,
/^1108.301$/,
/^297$/,
/^395$/,
/^5255$/,
/^152$/,
/^2840$/,
/^2850.794$/,
/^1164.113$/,
];
await setUpMockText(multipleDatasetServerUrl, false, "quantity");
await goToTab(tabName);
Expand Down
Loading

0 comments on commit 038855e

Please sign in to comment.