-
Notifications
You must be signed in to change notification settings - Fork 11
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
Tape support #28
Comments
Can you please try to pass As I can see from docs, it will generate assertion:
|
Aha, I didn't know that Here's what ended up working (don't forget assertions.toDispatchActionsWithState(
{ ...state },
action(),
[ ...expected ],
t.pass,
t.fail
).then(t.end) |
You can use |
After all, would be good to add Tape to list of supported frameworks and add doc for it. |
I'd be happy to start a PR, if that would be helpful to you. |
@adamyonk Sure! |
I can get the tests working with something like this:
This kind of works, because if something goes wrong in
toDispatchActionsWithState
, tape catches the thrown error and fails the test run, but it doesn't count the test in the tape output when it's passing, because you never actually assert anything with tape (t.equal
,t.deepEqual
, etc.). If there was some way to get the output actions oftoDispatchActionsWithState
, I could do some assertion like this:I saw that you can pass a
done
andfail
function in, but I think that would leave us in the same boat here. I'm not sure that an actual tape integration is necessary, if there is a way to get at the array of the actions that were dispatched and to not have a mismatch throw an error (so it could be handled byequal
,deepEqual
, and friends.The text was updated successfully, but these errors were encountered: