From 3a27fe11b18f1940e9eeb3d35ba7bc15e331bd4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lud=C4=9Bk=20Nov=C3=BD?= <13610612+ludeknovy@users.noreply.github.com> Date: Sat, 28 Sep 2024 18:59:09 +0200 Subject: [PATCH] tests fixes --- .../analyze-charts/analyze-charts.component.spec.ts | 9 ++++++++- .../label-chart/label-chart.component.spec.ts | 5 ++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/app/item-detail/analyze-charts/analyze-charts.component.spec.ts b/src/app/item-detail/analyze-charts/analyze-charts.component.spec.ts index e610ecbd..ffe8ef5b 100644 --- a/src/app/item-detail/analyze-charts/analyze-charts.component.spec.ts +++ b/src/app/item-detail/analyze-charts/analyze-charts.component.spec.ts @@ -33,7 +33,14 @@ describe("AnalyzeChartsComponent", () => { beforeEach(() => { fixture = TestBed.createComponent(AnalyzeChartsComponent); component = fixture.componentInstance; - component.chartLines = { labels: new Map([["test", [{ name: "test", data: [], suffix: " ms" }]]]), overall: new Map(), scatter: new Map() }; + component.chartLines = { + labels: new Map([["test", [{ name: "test", data: [], suffix: " ms" }]]]), + overall: new Map(), + scatter: new Map(), + threadsPerThreadGroup: new Map(), + monitoring: new Map(), + statusCodes: new Map(), + }; component.params = { projectName: "test-project", scenarioName: "test-scenario", id: "test-item" }; fixture.detectChanges(); }); diff --git a/src/app/item-detail/label-chart/label-chart.component.spec.ts b/src/app/item-detail/label-chart/label-chart.component.spec.ts index 766f7577..e88158f8 100644 --- a/src/app/item-detail/label-chart/label-chart.component.spec.ts +++ b/src/app/item-detail/label-chart/label-chart.component.spec.ts @@ -24,7 +24,10 @@ describe("LabelChartComponent", () => { component.chartLines = { labels: new Map([[Metrics.Network, [{ name: "name", suffix: "mbps", data: [] }] ]]), overall: new Map([[Metrics.Threads, { name: "virtual-users", data: [] }]]), - scatter: new Map([[Metrics.ResponseTimeRaw, [] ]]) + scatter: new Map([[Metrics.ResponseTimeRaw, [] ]]), + threadsPerThreadGroup: new Map([[Metrics.Threads, []]]), + monitoring: new Map([[Metrics.Monitoring, []]]), + statusCodes: new Map([[Metrics.StatusCodeInTime, { name: "name", data: [] }]]) }; fixture.detectChanges(); });