chore(tests): remove duplicate test in background-update-check (cubic feedback)
This commit is contained in:
parent
7e05bd2b8e
commit
0bae7ec4fc
@ -191,17 +191,6 @@ describe("runBackgroundUpdateCheck", () => {
|
|||||||
expect(mockShowAutoUpdatedToast).toHaveBeenCalledWith(mockCtx, "3.4.0", "3.5.0")
|
expect(mockShowAutoUpdatedToast).toHaveBeenCalledWith(mockCtx, "3.4.0", "3.5.0")
|
||||||
expect(mockShowUpdateAvailableToast).not.toHaveBeenCalled()
|
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", () => {
|
describe("#given unpinned with auto-update and install fails", () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user