Skip to content

Commit

Permalink
fix: ut
Browse files Browse the repository at this point in the history
  • Loading branch information
anchenyi committed Jan 15, 2025
1 parent bab36d4 commit b8ef73a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/fx-core/tests/component/m365/packageService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ describe("Package Service", () => {
axiosPostResponses["/dev/v1/users/packages"] = expectedError;

let packageService = new PackageService("https://test-endpoint");
sandbox.stub(packageService, "getManifestFromZip" as keyof PackageService).returns({} as any);
let actualError: any;
try {
await packageService.sideLoading("test-token", "test-path");
Expand All @@ -443,6 +444,7 @@ describe("Package Service", () => {
chai.assert.isTrue(actualError.message.includes("test-post"));

packageService = new PackageService("https://test-endpoint", logger);
sandbox.stub(packageService, "getManifestFromZip" as keyof PackageService).returns({} as any);
try {
await packageService.sideLoading("test-token", "test-path");
} catch (error: any) {
Expand Down

0 comments on commit b8ef73a

Please sign in to comment.