chore(tests): remove duplicate test in background-update-check (cubic feedback)

This commit is contained in:
YeonGyu-Kim
2026-02-22 16:51:04 +09:00
parent 7e05bd2b8e
commit 0bae7ec4fc

View File

@@ -191,17 +191,6 @@ describe("runBackgroundUpdateCheck", () => {
expect(mockShowAutoUpdatedToast).toHaveBeenCalledWith(mockCtx, "3.4.0", "3.5.0")
expect(mockShowUpdateAvailableToast).not.toHaveBeenCalled()
})
it("does NOT show update-available toast on success", async () => {
//#given
mockRunBunInstall.mockResolvedValue(true)
//#when
await runBackgroundUpdateCheck(mockCtx, true, getToastMessage)
//#then
expect(mockShowAutoUpdatedToast).toHaveBeenCalledTimes(1)
expect(mockShowUpdateAvailableToast).not.toHaveBeenCalled()
expect(mockRunBunInstall).toHaveBeenCalledTimes(1)
})
})
describe("#given unpinned with auto-update and install fails", () => {