Type of the expected left value.
Value or asymmetric matcher that should equal the left side.
import { left } from 'fp-ts/lib/Either'
test('passes when left of Either equals a value', () => {
const actual = left(Error('message'))
expect(actual).toEqualLeft(Error('message'))
})
test('passes when left of Either does not equal a value', () => {
const actual = left(Error('unexpected'))
expect(actual).not.toEqualLeft(Error('message'))
})
Asserts that the left side of an
Eitherequals an expected value or asymmetric matcher.