Skip to content

Commit

Permalink
Line-break long expectation failure messages
Browse files Browse the repository at this point in the history
This makes failures somewhat easier to read. We still preserve whitespace
within lines to make whitespace-only failures readable, e.g.
expect('foo  bar').toEqual('foo bar'). See #296.
  • Loading branch information
sgravrock committed May 12, 2018
1 parent ced2b11 commit e2d9eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jasmine-core/jasmine.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/html/_HTMLReporter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ body {

color: $text-color;

white-space: pre;
white-space: pre-wrap;
}

.jasmine-result-message span.jasmine-result {
Expand Down

0 comments on commit e2d9eef

Please sign in to comment.