From 0a55f45777b08f7780277657c0eb2ba519609c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lud=C4=9Bk=20Nov=C3=BD?= <13610612+ludeknovy@users.noreply.github.com> Date: Thu, 7 Mar 2024 14:24:49 +0100 Subject: [PATCH] test fixes --- .../request-stats/request-stats-compare.component.spec.ts | 1 + src/app/login/login.component.spec.ts | 6 +++--- .../delete-scenario/delete-scenario.component.spec.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/item-detail/request-stats/request-stats-compare.component.spec.ts b/src/app/item-detail/request-stats/request-stats-compare.component.spec.ts index 8c87ff7a..1abf124b 100644 --- a/src/app/item-detail/request-stats/request-stats-compare.component.spec.ts +++ b/src/app/item-detail/request-stats/request-stats-compare.component.spec.ts @@ -52,6 +52,7 @@ describe("RequestStatsCompareComponent", () => { topMetricsSettings: undefined, zeroErrorToleranceEnabled: false, status: "10", + minTestDuration: 2, overview: { maxVu: 100, avgConnect: 100, diff --git a/src/app/login/login.component.spec.ts b/src/app/login/login.component.spec.ts index 388093d9..feca50c9 100644 --- a/src/app/login/login.component.spec.ts +++ b/src/app/login/login.component.spec.ts @@ -11,10 +11,10 @@ describe("LoginComponent", () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - imports: [ReactiveFormsModule, RouterModule.forRoot([], { relativeLinkResolution: "legacy" }), HttpClientTestingModule], - declarations: [ LoginComponent ] + imports: [ReactiveFormsModule, RouterModule.forRoot([], {}), HttpClientTestingModule], + declarations: [LoginComponent] }) - .compileComponents(); + .compileComponents(); })); beforeEach(() => { diff --git a/src/app/scenario/delete-scenario/delete-scenario.component.spec.ts b/src/app/scenario/delete-scenario/delete-scenario.component.spec.ts index 12228003..2680a7df 100644 --- a/src/app/scenario/delete-scenario/delete-scenario.component.spec.ts +++ b/src/app/scenario/delete-scenario/delete-scenario.component.spec.ts @@ -13,7 +13,7 @@ describe("DeleteScenarioComponent", () => { TestBed.configureTestingModule({ declarations: [DeleteScenarioComponent], imports: [FormsModule, ReactiveFormsModule, HttpClientTestingModule, - RouterModule.forRoot([], { relativeLinkResolution: "legacy" })] + RouterModule.forRoot([], { })] }) .compileComponents(); }));