effects-as-data
effects-as-data copied to clipboard
Handle v2 syntax in test fn
Issue: https://github.com/orourkedd/effects-as-data/issues/25
I was looking at this PR and wondering if a test wherein the function takes 2 arguments and/or returns a tuple would fail. Would it not recognize this as the new syntax because the first element in the array is a tuple?
test(
"testFn should accept the V2 syntax",
testFn(basic, () => {
// prettier-ignore
return [
['foo', 'bar'],
[ cmds.echo('foo'), 'foo' ],
['foo', 'bar']
]
})
)
Great point. Gonna give it another go.