We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 28f9613 + 2c70f43 commit d88e458Copy full SHA for d88e458
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