jasmine-folktale
v0.0.5
Published
[![NPM Version](https://img.shields.io/npm/v/jasmine-matchers.svg)](https://www.npmjs.com/package/jasmine-matchers) [![codecov](https://img.shields.io/codecov/c/github/Undistraction/jasmine-matchers.svg)](https://codecov.io/gh/Undistraction/jasmine-matche
Downloads
17
Readme
jasmine-folktale
Jasmine Matchers for use with folktale.
Use with Jasmine or anything that supports Jasmine matchers, like Jest.
Install
yarn add jasmine-folktale
or
npm install jasmine-folktale
Matchers
toEqualSuccessWithValue
const value = { a: 1 }
const validation = Success(value)
expect(validation).toEqualSuccessWithValue(value) // Pass
toEqualFailureWithValue
const value = { a: 1 }
const validation = Failure(value)
expect(validation).toEqualFailureWithValue(value) // Pass