Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
test(label): drop a needless async on the empty-body spec
Yudhi Armyndharisc4c24e2b61bf
diff --git a/src/modules/label/label.service.spec.ts b/src/modules/label/label.service.spec.tsindex 03abd6ecd..070b1843c 100644--- a/src/modules/label/label.service.spec.ts+++ b/src/modules/label/label.service.spec.ts@@ -35,7 +35,7 @@ describe('LabelService label editing', () => {return new LabelService(engines);};- it('refuses an empty body — nothing to write, and an unused id would create a nameless label', async () => {+ it('refuses an empty body — nothing to write, and an unused id would create a nameless label', () => {const upsertLabel = jest.fn();expect(() => makeService({ upsertLabel }).upsertLabel('s1', 'l1', {})).toThrow(BadRequestException);expect(upsertLabel).not.toHaveBeenCalled();