mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 14:32:03 +00:00
Merge remote-tracking branch 'origin/main' into release/v1.47.5
This commit is contained in:
commit
6994cb5ce8
6 files changed
+63
-17
No files matched your search
@@ -482,13 +482,15 @@ describe("sw.js — activate", () => {
|
||||
expect(harness.navPreload.enabled).toBe(true);
|
||||
});
|
||||
|
||||
it("clears the dose count an earlier release left on the app icon", async () => {
|
||||
it("leaves the app icon badge to the page, never touches it while activating", async () => {
|
||||
// A badge call from the worker can stall Chromium's worker thread, so the
|
||||
// activation never claims its pages. The page clears a leftover count.
|
||||
const harness = bootServiceWorker();
|
||||
const { badge } = swFakes(harness);
|
||||
|
||||
await dispatchActivate(harness);
|
||||
|
||||
expect(badge.cleared).toBe(true);
|
||||
expect(badge.cleared).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user