DEV Community

Discussion on: Using pipes in your (test) assertions

Collapse
 
kevinkoltz profile image
Kevin Koltz

Seems like you could take it a step further and return result in the is function to pipe multiple assertions

Collapse
 
wulymammoth profile image
David

Ah! Why didn't I think of this!? Yes! Clever clever! Thanks, Kevin!

Collapse
 
wulymammoth profile image
David • Edited

You also made me think up some more clever things to try, like returning a partially applied function, such that we can pipe not only values into the assertion but do more complex operations/assertions with a function (e.g. make assertions on nested fields)