Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Blond11516 committed May 8, 2024
1 parent a036266 commit 9385073
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/auto-installer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ describe("AutoInstaller", () => {
beforeEach(() => {
mockResolvedValue(Zip, "extract");
mockReturnValue(Notifications, "notifyAutoInstallSuccess");
mockReturnValue(Configuration, "getAutoInstallUpdateNotification", false);
});

describe("isInstalledReleaseLatest", () => {
Expand Down Expand Up @@ -115,6 +116,7 @@ describe("AutoInstaller", () => {
});

test("notifies the user of the newly installed version", async () => {
mockReturnValue(Configuration, "getAutoInstallUpdateNotification", true);
mockReturnValue(Notifications, "notifyAutoInstallSuccess");
givenDownloadedZip();
await AutoInstaller.install(A_PROGRESS, A_RELEASE, A_RELEASE_URI);
Expand Down

0 comments on commit 9385073

Please sign in to comment.