-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit test: store.reset() has not effect in v3.0.0 #116
Comments
Faces the same problem. |
Can someone please approve the open PR or otherwise show some workaround? |
+1 |
1 similar comment
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm submitting a...
Current behavior
I updated @ngxs-labs/select-snapshot from 1.2.0 to 3.0.0. I noticed a change in unit tests:
Let's take as an example this very simple component that uses
@SelectSnapshot()
:And test it:
In the test, I use
store.reset()
to change the content of the state.With @ngxs-labs/select-snapshot v1.2.0, the tests pass.
With v3.0.0, they fail:
I tried to call
TestBed.createComponent()
afterstore.reset()
and to calldetectChanges()
on the component fixture, without success.Is it a bug or I am missing something?
Environment
The text was updated successfully, but these errors were encountered: