Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

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.ts
index 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(['*']);
}
});
});