In the ngOnInit lifecycle hook, I am subscribing to a stream of data that contains a name object. If the name is not empty, I am updating the value of this.name with the received Name object.
Can someone assist me in creating test cases to ensure code coverage for the scenario when this.name is assigned a new value from the subscribed stream? Thank you.