Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-line error messages are rendered in a weird order #79

Closed
4kochi opened this issue Mar 13, 2015 · 1 comment
Closed

Multi-line error messages are rendered in a weird order #79

4kochi opened this issue Mar 13, 2015 · 1 comment

Comments

@4kochi
Copy link

4kochi commented Mar 13, 2015

Try this:

expect('Hello\nWorld').toBe(0);

The displayed error message is:

FAILED TESTS:
  myTest
    myOtherTest
      ✖ should work
        PhantomJS 1.9.8 (Mac OS X)
      World' to be 0.
      Error: Expected 'Hello
          at /var/folders/(...)/blablabla-test.js:126:0

The problem is that in the function getRelevantStackFrom(stack) the stack is splitted by \nand when the stack also contains the error message the output is formatted wrong in the function formatFailedStep(step)

@maksimr
Copy link
Contributor

maksimr commented Apr 25, 2015

fixed #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants