Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tyaginidhi committed Oct 16, 2024
1 parent 556cbf8 commit 749982e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/web/client/test/integration/webExtensionTelemetry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 749982e

Please sign in to comment.