Skip to content

Commit

Permalink
Fixed an issue where identical diffs would attempt to be rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdp committed Jan 17, 2025
1 parent 052b5b0 commit daa52a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/source/rooibos/MochaTestReporter.bs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ namespace rooibos
if not test.result.isCrash
resultMessage += `${string(1, chr(9))}AssertionError: ${test.result.getMessage()}`

if test.result.actual <> "" or test.result.expected <> ""
if (test.result.actual <> "" or test.result.expected <> "") and (test.result.actual <> test.result.expected)
resultMessage += m.unifiedDiff(test.result.actual, test.result.expected)
end if

Expand Down

0 comments on commit daa52a8

Please sign in to comment.