Skip to content

Commit

Permalink
test(backstage-plugin): Change value used in tests
Browse files Browse the repository at this point in the history
So that we can check for the exact decimal used from the response.
Should help make the test a bit clearer.

Addresses #71
  • Loading branch information
kylejwatson committed Nov 20, 2023
1 parent 3965dca commit cdd225c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function createService() {
dataPoints: [
{
key: `${project}_${team}_${aggregation}_${type}_first_key`,
value: 1.0,
value: 2.3,
},
],
}),
Expand All @@ -41,7 +41,7 @@ describe('GroupDataService', () => {
await service.retrieveMetricDataPoints({ type: 'df_count' }),
).toEqual({
aggregation: 'weekly',
dataPoints: [{ key: 'null_null_null_df_count_first_key', value: 1 }],
dataPoints: [{ key: 'null_null_null_df_count_first_key', value: 2.3 }],
});
});

Expand All @@ -58,7 +58,7 @@ describe('GroupDataService', () => {
).toEqual({
aggregation: 'monthly',
dataPoints: [
{ key: 'project1_team1_monthly_df_count_first_key', value: 1 },
{ key: 'project1_team1_monthly_df_count_first_key', value: 2.3 },
],
});
});
Expand Down

0 comments on commit cdd225c

Please sign in to comment.