diff --git a/src/parsing.test.ts b/src/parsing.test.ts index 740528b..2520fe8 100644 --- a/src/parsing.test.ts +++ b/src/parsing.test.ts @@ -232,7 +232,7 @@ const assertSuccess = ( actualResult: ParserResult, expectedOutput: Output, ) => - customAssertions(assertRight, () => { + customAssertions(assertSuccess, () => { if (either.isLeft(actualResult)) { assert.fail('result was failure; expected success') } @@ -242,7 +242,7 @@ const assertSuccess = ( const assertFailure = ( actualResult: Either, ) => - customAssertions(assertRight, () => + customAssertions(assertFailure, () => assert( either.isLeft(actualResult), 'result was successful; expected failure',