tawn33y / whatsapp-cloud-api

A Node.js library for creating bots and sending/receiving messages using the Whatsapp Cloud API.
https://www.npmjs.com/package/whatsapp-cloud-api
GNU General Public License v3.0
187 stars 51 forks source link

Add try-catch for failing tests #29

Closed tawn33y closed 2 years ago

tawn33y commented 2 years ago

Some tests currently fail with no error and just throws an empty string, unless you use a try-catch statement. Need to fix this in the main code, but for now, can simply add a try-catch in the tests to know why the test failed.

e.g. image

tawn33y commented 2 years ago

Attempt to resolve this didn't resolve the issue. Needs more investigating. For now, rerunning the test seems to make it pass. Closing.