Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
style: fix lint errors in spec files (prettier + unused import) (#597)
Yudhi Armyndharis58c16150077f
diff --git a/src/modules/integration/plugin-instance.service.spec.ts b/src/modules/integration/plugin-instance.service.spec.tsindex 1ea201c7a..a67ff504b 100644--- a/src/modules/integration/plugin-instance.service.spec.ts+++ b/src/modules/integration/plugin-instance.service.spec.ts@@ -101,12 +101,7 @@ describe('PluginInstanceService', () => {await service.create('chatwoot', 'acct1', { config: { apiToken: 'real-token', accountId: 1 } });// Dashboard round-trips the masked config back with an edited non-secret field.- const updated = await service.update(- 'chatwoot',- 'acct1',- { config: { apiToken: '***', accountId: 2 } },- schema,- );+ const updated = await service.update('chatwoot', 'acct1', { config: { apiToken: '***', accountId: 2 } }, schema);expect(updated?.config).toEqual({ apiToken: 'real-token', accountId: 2 });});diff --git a/src/modules/webhook/webhook.service.spec.ts b/src/modules/webhook/webhook.service.spec.tsindex 26e4e3b08..9d38574a7 100644--- a/src/modules/webhook/webhook.service.spec.ts+++ b/src/modules/webhook/webhook.service.spec.ts@@ -14,7 +14,7 @@ import { Test, TestingModule } from '@nestjs/testing';import { getRepositoryToken } from '@nestjs/typeorm';import { getQueueToken } from '@nestjs/bullmq';import { In, Repository } from 'typeorm';-import { NotFoundException, BadRequestException } from '@nestjs/common';+import { NotFoundException } from '@nestjs/common';import { ConfigService } from '@nestjs/config';import * as crypto from 'crypto';import { fetch as undiciFetch } from 'undici';