Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

test(dashboard): describe the refused-member stub as a partial refusal

Yudhi Armyndharis8dd109d40a90
diff --git a/dashboard/src/pages/Chats.features.test.ts b/dashboard/src/pages/Chats.features.test.ts
index 318587cea..3c8db51b4 100644
--- a/dashboard/src/pages/Chats.features.test.ts
+++ b/dashboard/src/pages/Chats.features.test.ts
@@ -66,7 +66,8 @@ let listGroup = false;
let blockedIds: string[] = [];
// Whether the session's own number administers GROUP.
let groupAdmin = true;
-// When true, a membership write answers HTTP 200 and reports every participant as refused.
+// When true, a membership write answers HTTP 200 with its participants refused in `results`, as the route does
+// for a batch WhatsApp turns down in part.
let refuseMember = false;
const CONTACT = { id: '[email protected]', name: 'Bob', number: '15550002222', isMyContact: true, isBlocked: false };