Hello, I am wondering how to handle Raise<Failu...
# arrow
l
Hello, I am wondering how to handle Raise<Failure> in my unit tests With Either I am using shouldBeRight or shouldBeLeft but they don’t exist with Raise DSL
y
You can use
recover
and throw an exception at the end of the success/failure path, or you can just use
either { }
and still use your
shouldBeRight
and
shouldBeLeft
l
Thanks, I think
either { }
will be the easiest way to migrate for now