Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
test(integration): pin the exact scope set after an unordered reconcile
Yudhi Armyndharis0a0cf26cad30
diff --git a/src/modules/integration/scope-binding.service.spec.ts b/src/modules/integration/scope-binding.service.spec.tsindex 2f16bb86f..6b8df2ac4 100644--- a/src/modules/integration/scope-binding.service.spec.ts+++ b/src/modules/integration/scope-binding.service.spec.ts@@ -275,8 +275,8 @@ describe('ScopeBindingService.onApplicationBootstrap reconciliation', () => {list: jest.fn().mockResolvedValue([]),} as unknown as PluginInstanceService;await new ScopeBindingService(instances, loader, audit, sessionRows).onApplicationBootstrap();- // The wildcard activation must survive in both row orders ('*' subsumes the concrete scope).- expect(plugin.activeSessions).toContain('*');+ // Both row orders end at exactly ['*'] ('*' subsumes the concrete scope).+ expect(plugin.activeSessions).toEqual(['*']);}});});