We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28f9613 commit 2c70f43Copy full SHA for 2c70f43
src/parsing.test.ts
@@ -232,7 +232,7 @@ const assertSuccess = <Output>(
232
actualResult: ParserResult<Output>,
233
expectedOutput: Output,
234
) =>
235
- customAssertions(assertRight, () => {
+ customAssertions(assertSuccess, () => {
236
if (either.isLeft(actualResult)) {
237
assert.fail('result was failure; expected success')
238
}
@@ -242,7 +242,7 @@ const assertSuccess = <Output>(
242
const assertFailure = <Output>(
243
actualResult: Either<InvalidInputError, Output>,
244
245
- customAssertions(assertRight, () =>
+ customAssertions(assertFailure, () =>
246
assert(
247
either.isLeft(actualResult),
248
'result was successful; expected failure',
0 commit comments