diff --git a/lib/callmebot_whatsapp_service.ts b/lib/callmebot_whatsapp_service.ts index 1b22f51..1915338 100644 --- a/lib/callmebot_whatsapp_service.ts +++ b/lib/callmebot_whatsapp_service.ts @@ -8,7 +8,7 @@ * https://www.callmebot.com/blog/free-api-whatsapp-messages/ * - Make sure your Google Apps Script project has the necessary permissions (like UrlFetch) enabled. */ -class CallMeBotWhatsAppAPI { +export class CallMeBotWhatsAppAPI { /** * Sends a WhatsApp text message to the provided phone number. * diff --git a/test/test_send_whastapp.ts b/test/test_send_whastapp.ts index 5dd54fa..6e3841b 100644 --- a/test/test_send_whastapp.ts +++ b/test/test_send_whastapp.ts @@ -1,3 +1,5 @@ +import { CallMeBotWhatsAppAPI } from "../lib/callmebot_whatsapp_service"; + function TestSendWhatsapp() { CallMeBotWhatsAppAPI.sendMessage("Test Send Whatsapp"); } \ No newline at end of file