Replies: 1 comment
-
I believe our observable support is focused on completion of the observable, but it doesn't do anything fancy otherwise. I suggest you use an async function as the test implementation and manage the observable through there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
so, I am trying to write a unit test for a state system called akioma. At the heart of the state is the store, which is queried by accessing an Observable selector which returns a slice of the store
status$ = this.select((state) => state.status);
status$ is an observable .
so, the following code reacts to the change of status
Now, I want to a) test the initial state (which should be null) and then b) test the service which changes the status and check that a new value has been sent to the store and observable.
when I run this test, it passes, but with this message
Beta Was this translation helpful? Give feedback.
All reactions