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 #23

Closed
mik01aj opened this issue Mar 12, 2015 · 4 comments
Closed

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

mik01aj opened this issue Mar 12, 2015 · 4 comments
Assignees

Comments

@mik01aj
Copy link

mik01aj commented Mar 12, 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

Related issues: jasmine/jasmine#742 and jasmine/jasmine#796

@4kochi
Copy link
Collaborator

4kochi commented Mar 12, 2015

I will have a look. Thanks for reporting.

@4kochi 4kochi self-assigned this Mar 12, 2015
@4kochi
Copy link
Collaborator

4kochi commented Mar 13, 2015

Ok, seems like a bug in karma-jasmine. My reporter gets the wrong input and just print it. I will try to find the bug in karma-jasmine.

@4kochi
Copy link
Collaborator

4kochi commented Mar 13, 2015

@4kochi
Copy link
Collaborator

4kochi commented Feb 17, 2016

The causing issue karma-runner/karma-jasmine#79 was fixed.

@4kochi 4kochi closed this as completed Feb 17, 2016
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