Closed kravinash13 closed 3 years ago
I am not sure if the current version of RxStompService has a connect method. Otherwise mocking should be just like any other object. Please check https://stomp-js.github.io/api-docs/latest/classes/RxStomp.html (RxStompService is an injectable version of RxStomp).
@kum-deepak Thank you. Was able to write unit test by mocking RxStompService
.
How do we mock RxStompService connect method for unit test in Jest.