Skip to main content

Test a subscription

Testing of subscriptions does not differ from testing of commands.
The only difference is, that the builder method for getting the subscription function,has a slightly different name.

Getting the subscription function:

 const subscriptionFunction = testSubscriptionBuilder.getSubscriptionFunction().bind(service)

See chapter Test a command.

Last update:
Contributors: Sebastian Wessel