Question about asserting the validation error when indentation is present on multiple causes in v6.0.1 #204
Closed
sudoharshita16
started this conversation in
General
Replies: 1 comment 1 reply
-
use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @santhosh-tekuri
We are using the version v6.0.1 and encountered an issue related to asserting validation errors when there is indentation for multiple causes.
The issue arises from the display function, specifically when indentation is applied to each cause. When we run our tests, the generated output includes indentation for every cause. This makes it challenging to write assertions, as the exact output varies based on the nesting depth of Causes.
Attached is the function for displaying causes:
Question:
How can we assert such errors effectively while accounting for the indentation? Is there a recommended approach for handling this formatting in assertions?
Beta Was this translation helpful? Give feedback.
All reactions