Assertions on action calling another action within the same store #2662
Unanswered
cod1o
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given an options store:
I can verify that
foo
callsbar
using:Now, if I change the store to setup syntax:
..The test fails: with AssertionError: expected "spy" to be called at least once. Same behavior when changing the actions to arrow-functions.
If i pass
this
to the action functions, the test succeeds again:But would rather avoid passing around
this: any
. Any other workaround to this?Beta Was this translation helpful? Give feedback.
All reactions