Skip to content

Commit

Permalink
refactor: ut
Browse files Browse the repository at this point in the history
  • Loading branch information
jayzhang committed Jun 19, 2024
1 parent eae76ed commit ebb3704
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { err, Platform } from "@microsoft/teamsfx-api";
import { err, ok, Platform } from "@microsoft/teamsfx-api";
import { UserCancelError } from "@microsoft/teamsfx-core";
import { assert } from "chai";
import * as sinon from "sinon";
Expand Down Expand Up @@ -36,7 +36,7 @@ describe("Lifecycle handlers", () => {
});
});
it("CreateNewEnvironment", async () => {
await processResult(TelemetryEvent.CreateNewEnvironment, ok(new UserCancelError()), {
await processResult(TelemetryEvent.CreateNewEnvironment, ok(null), {
platform: Platform.VSCode,
sourceEnvName: "dev",
targetEnvName: "dev1",
Expand Down

0 comments on commit ebb3704

Please sign in to comment.