Skip to content

Commit

Permalink
tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy committed Sep 28, 2024
1 parent f82fb45 commit 3a27fe1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 3a27fe1

Please sign in to comment.