You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SagaTestError:
Assertion 1 failed: take effects do not match
Expected
--------
{ '@@redux-saga/IO': true,
combinator: false,
type: 'TAKE',
payload: { pattern: '*' } }
Actual
------
{ '@@redux-saga/IO': true,
combinator: false,
type: 'TAKE',
payload: { pattern: [Function] } }
I have not been able to find how to assert the a take effect that takes a function pattern instead of a string. Can someone please help me?
The text was updated successfully, but these errors were encountered:
lolero
changed the title
How can I assert a take effect that takes a function as pattern
take assertion with redux-saga-test-plan that takes a function as pattern gives 'take effects do not match' error
Aug 21, 2020
I want to test a saga that yields a
take
effect which takes a function as pattern, e.g.with a test that looks like:
but I get the following error:
I have not been able to find how to assert the a take effect that takes a function pattern instead of a string. Can someone please help me?
The text was updated successfully, but these errors were encountered: