Jasmine Matchers for use with folktale.
Use with Jasmine or anything that supports Jasmine matchers, like Jest.
yarn add jasmine-folktale
or
npm install jasmine-folktale
const value = { a: 1 }
const validation = Success(value)
expect(validation).toEqualSuccessWithValue(value) // Pass
const value = { a: 1 }
const validation = Failure(value)
expect(validation).toEqualFailureWithValue(value) // Pass