-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(adapter): don't duplicate multiline failure messages
The current code to handle removing error messages for formatting does not properly handle multiline error messages and results in the message being repeated at the top of the stack trace. The code only searched for the message in the first stack line, which meant it would never be found because the message was multiple lines, which meant that the message would be pre-pended by the message not in stack logic. The existing multiline test actually triggers this behavior, but because it used toMatch it only verified that the message was included, not that it only existed once.
- Loading branch information
1 parent
58d5d25
commit 6f56439
Showing
2 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters