forked from karma-runner/karma-jasmine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request karma-runner#86 from r-park/fix-issue-79
fix(adapter): remove error message from stack prior to processing stack
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -201,6 +201,18 @@ describe('jasmine adapter', function(){ | |
expect( formatFailedStep(step) ).toBe( 'MESSAGE' ); | ||
}); | ||
|
||
|
||
it('should properly format message containing new-line characters', function(){ | ||
// FF does not have the message in the stack trace | ||
|
||
var step = { | ||
passed : false, | ||
message : 'Jasmine fail\nmessage', | ||
stack : 'Error: Jasmine fail\nmessage\[email protected]:123' | ||
}; | ||
|
||
expect( formatFailedStep(step) ).toMatch( 'Jasmine fail\nmessage\[email protected]:123' ); | ||
}); | ||
}); | ||
|
||
|
||
|