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

Relevant Messages are partly extracted from Relevant Stack while running PhantomJS #91

Closed
srrvnn opened this issue May 27, 2015 · 1 comment

Comments

@srrvnn
Copy link

srrvnn commented May 27, 2015

I have the following error on a jasmine test case while running Chrome :

Expected null to equal <jasmine.any(function Array() { [native code] })>. 

The same error has \n while using PhantomJS like so :

Expected null to equal <jasmine.any(function Array() { 
    [native code] 
})>. 

And, while computing relevantMessage in adapter.js the first line doesn't match the message because it contains an Error: but the second line is taken as a relevant message from the stack, thus causing the final message to be :

    [native code] 
})>. 

And the relevant stack contains just the first line, like so:

Expected null to equal <jasmine.any(function Array() { 
    at . . . 

Fix : remove the Error: while checking to see if a stack entry matches the message in src/adapter.js:80

@srrvnn
Copy link
Author

srrvnn commented May 29, 2015

duplicate issue of #79. please remove labels.

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

Successfully merging a pull request may close this issue.

3 participants