node-ms-teams-webhook icon indicating copy to clipboard operation
node-ms-teams-webhook copied to clipboard

Question: How to mock this

Open Kolesar opened this issue 4 years ago • 1 comments

How can I mock this in my tests?

Do you have a simple example, please?

Kolesar avatar Mar 04 '21 11:03 Kolesar

I'd use nock to assert that HTTP requests are being made to the webhook URL provided to the library, without the side-effect of actually posting messages.

adrukh avatar Jul 02 '21 12:07 adrukh