test: clear weak assertion scan

This commit is contained in:
Peter Steinberger
2026-05-08 21:11:04 +01:00
parent 4a3b516557
commit a0ef60eb4c
4 changed files with 4 additions and 4 deletions

View File

@@ -246,7 +246,10 @@ describe("web auto-reply connection", () => {
await vi.waitFor(
() => {
expect(scripted.getListenerCount()).toBe(1);
expect(getActiveWebListener(accountId)).not.toBeNull();
const activeListener = getActiveWebListener(accountId);
if (!activeListener) {
throw new Error("expected active WhatsApp web listener");
}
},
{ timeout: 250, interval: 2 },
);

View File

@@ -37,7 +37,6 @@ function requireReadOnlyResolutionFinding(
const finding = findings.find(
(entry) => entry.checkId === "channels.zalouser.account.read_only_resolution",
);
expect(finding).toBeDefined();
if (!finding) {
throw new Error("Expected Zalo read-only resolution warning");
}

View File

@@ -17,7 +17,6 @@ function requireFinding(
findings: ReturnType<typeof collectExecRuntimeFindings>,
) {
const finding = findings.find((entry) => entry.checkId === checkId);
expect(finding).toBeDefined();
if (!finding) {
throw new Error(`Expected ${checkId} finding`);
}

View File

@@ -7,7 +7,6 @@ function requireProbeAuthWarning(findings: ReturnType<typeof collectDeepProbeFin
const warning = findings.find(
(finding) => finding.checkId === "gateway.probe_auth_secretref_unavailable",
);
expect(warning).toBeDefined();
if (!warning) {
throw new Error("Expected gateway probe auth SecretRef warning");
}