From ee04c5bcf45d9eb57e6e931f3a3536d3d03671c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Wed, 11 Nov 2026 20:55:08 +0100 Subject: [PATCH] test: register the push unsubscribe DELETE by hand The DELETE behind "Disable push" moved into the shared unsubscribeWebPush helper under lib/, which the destructive-control detectors do not scan. The card's entry stays and says where the request goes out now. --- src/__tests__/destructive-control-guard.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/__tests__/destructive-control-guard.test.ts b/src/__tests__/destructive-control-guard.test.ts index 1dd48b750..b9f599b07 100644 --- a/src/__tests__/destructive-control-guard.test.ts +++ b/src/__tests__/destructive-control-guard.test.ts @@ -347,6 +347,8 @@ const REGISTRY: DestructiveEntry[] = [ "This is the off half of a notification channel toggle. Re-subscribing from the same control recreates the row, nothing the person authored is stored in it, and the browser permission survives. Gating it would put a dialog on a switch.", }, ], + undetected: + "No detector sees it. The DELETE goes out from `unsubscribeWebPush` in `lib/notifications/web-push-unsubscribe.ts`, which sign-out calls too, and `lib/` is an excluded root. Registered by hand.", }, // ── Measurements, mood, labs, illness — the undo-and-restore surfaces ────