return same data for all product insights requests in mock client
This commit is contained in:
@@ -127,17 +127,12 @@ export class ExampleCostInsightsClient implements CostInsightsApi {
|
||||
}
|
||||
|
||||
async getProductInsights(options: ProductInsightsOptions): Promise<Entity> {
|
||||
const projectProductInsights = await this.request(
|
||||
options,
|
||||
entityOf(options.product),
|
||||
);
|
||||
|
||||
const productInsights: Entity = await this.request(
|
||||
options,
|
||||
entityOf(options.product),
|
||||
);
|
||||
|
||||
return options.project ? projectProductInsights : productInsights;
|
||||
return productInsights;
|
||||
}
|
||||
|
||||
async getAlerts(group: string): Promise<Alert[]> {
|
||||
|
||||
Reference in New Issue
Block a user