Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
test(engine): drop redundant mock.calls assertion (lint: no-unsafe-member-access)
rmyndharis4532742e5e35
diff --git a/src/engine/engine.factory.spec.ts b/src/engine/engine.factory.spec.tsindex 6eefa8752..7c74027e0 100644--- a/src/engine/engine.factory.spec.ts+++ b/src/engine/engine.factory.spec.ts@@ -31,11 +31,9 @@ describe('EngineFactory', () => {const factory = new EngineFactory(buildConfigService(), pluginLoader);factory.create({ sessionId: 'sess-1', proxyUrl: 'http://p', proxyType: 'http' });+ // Plain-object (not objectContaining) assertion: any browser key (headless/puppeteerArgs/+ // executablePath/sessionDataPath) leaking into the per-call config would fail this exact match.expect(createEngine).toHaveBeenCalledWith({ sessionId: 'sess-1', proxyUrl: 'http://p', proxyType: 'http' });- const passed = createEngine.mock.calls[0][0] as Record<string, unknown>;- for (const k of ['headless', 'puppeteerArgs', 'executablePath', 'sessionDataPath']) {- expect(passed).not.toHaveProperty(k);- }});it('registers the built-in engine with the opaque engine config blob (#219 guarantee moves to context.config)', async () => {