it("can't find the user", () =>
Effect.gen(function* ($) {
const actual = yield* $(
__test__.generateLoginOptionsEffect('[email protected]'),
Effect.either
)
expect(Either.isLeft(actual)).toBeTruthy()
if (Either.isLeft(actual)) {
expect(actual.left).toMatchObject(new NoUserFound())
}
}).pipe(runTest(null)))
it("can't find the user", () =>
Effect.gen(function* ($) {
const actual = yield* $(
__test__.generateLoginOptionsEffect('[email protected]'),
Effect.either
)
expect(Either.isLeft(actual)).toBeTruthy()
if (Either.isLeft(actual)) {
expect(actual.left).toMatchObject(new NoUserFound())
}
}).pipe(runTest(null)))