Skip to content

Commit

Permalink
Fix sample data in example Cost Insights client
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
  • Loading branch information
timbonicus committed Nov 16, 2021
1 parent 4754315 commit 4576f82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cost-insights-two-crabs-evolve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/plugin-cost-insights': patch
---

Fixed generation of sample data in the example Cost Insights client
2 changes: 1 addition & 1 deletion plugins/cost-insights/src/testUtils/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function aggregationFor(
const days = DateTime.fromISO(endDate).diff(
DateTime.fromISO(inclusiveStartDateOf(duration, inclusiveEndDate)),
'days',
);
).days;

function nextDelta(): number {
const varianceFromBaseline = 0.15;
Expand Down

0 comments on commit 4576f82

Please sign in to comment.