Change value of an observable

  angular, javascript, observable, typescript

In my unit tests I have a method which returns an Observable boolean. I want to change it from true to false, how can I achieve this without using spyOn.

// how can I change the value of this observable?
stateService.changeTriggered().subscribe();

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.