Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
test(search): remove a types spec that could not fail
Yudhi Armyndharis68c775d37806
diff --git a/src/modules/search/search.types.spec.ts b/src/modules/search/search.types.spec.tsdeleted file mode 100644index caf2582aa..000000000--- a/src/modules/search/search.types.spec.ts+++ /dev/null@@ -1,30 +0,0 @@-import type { SearchProvider, SearchQuery, SearchResults, SearchHealth, SearchHit } from './search.types';-import { MessageDirection } from '../message/entities/message.entity';--describe('search.types', () => {- it('compiles a valid SearchProvider fixture', () => {- const query: SearchQuery = { q: 'hi' };- const provider: SearchProvider = {- id: 'test',- label: 'Test',- search: (): Promise<SearchResults> => Promise.resolve({ hits: [], total: 0, tookMs: 1, provider: 'test' }),- health: (): Promise<SearchHealth> => Promise.resolve({ ok: true }),- };- const hit: SearchHit = {- messageId: 'm1',- waMessageId: 'w1',- sessionId: 's1',- chatId: 'c1',- body: 'hi',- snippet: '<mark>hi</mark>',- timestamp: 1,- type: 'text',- direction: MessageDirection.OUTGOING,- from: '[email protected]',- score: 1,- };- expect(provider.id).toBe('test');- expect(hit.body).toBe('hi');- expect(query.q).toBe('hi');- });-});