Testing Async Functions

I have a node with the following function:

    node.foo = async function () {
      throw ("FooBar");

    };

I would like to test this function using the https://github.com/node-red/node-red-node-test-helper.

I want to test that the function returns an exception. How is this achievable with the test helper?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.