From 749982e562fc60617e1ee3f3f4fe4bb9d51182e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nidhi=20Tyagi=20=F0=9F=8C=9F=F0=9F=90=87=F0=9F=8C=B4?= =?UTF-8?q?=E2=9D=84=EF=B8=8F?= Date: Wed, 16 Oct 2024 14:55:59 +0530 Subject: [PATCH] test fix --- .../client/test/integration/webExtensionTelemetry.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/web/client/test/integration/webExtensionTelemetry.test.ts b/src/web/client/test/integration/webExtensionTelemetry.test.ts index d9a57422b..27f38e3ba 100644 --- a/src/web/client/test/integration/webExtensionTelemetry.test.ts +++ b/src/web/client/test/integration/webExtensionTelemetry.test.ts @@ -9,6 +9,7 @@ import { sanitizeURL } from "../../utilities/urlBuilderUtil"; import { webExtensionTelemetryEventNames } from "../../../../common/OneDSLoggerTelemetry/web/client/webExtensionTelemetryEvents"; import { WebExtensionTelemetry } from "../../telemetry/webExtensionTelemetry"; import { vscodeExtAppInsightsResourceProvider } from "../../../../common/telemetry-generated/telemetryConfiguration"; +import * as commonUtil from "../../utilities/commonUtil"; import { expect } from "chai"; describe("webExtensionTelemetry", () => { @@ -129,6 +130,10 @@ describe("webExtensionTelemetry", () => { // eslint-disable-next-line @typescript-eslint/no-explicit-any } as any; + stub(commonUtil, "getEnvironmentIdFromUrl").returns( + "c4dc3686-1e6b-e428-b886-16cd0b9f4918" + ); + //Action webExtensionTelemetry.sendExtensionInitQueryParametersTelemetry( queryParamsMap