You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! With the recent release of PhantomJS 1.8 I have started to add on front-end testing to my existing tests with Mocha. However, I am running into an issue with errors causing exits.
Running the tests below, I would expect something like..
x should fail
check should pass
1 of 2 tests failed:
reason it failed.
Actual Output
Running "simplemocha:frontend" (simplemocha) task
=============
webdriver load
=============
Load Google
Fatal error: expected 'Google' to equal 'Github'
Back on command prompt.
To run the tests, I am using the grunt task simple-mocha via this configuration...
Hello! With the recent release of PhantomJS 1.8 I have started to add on front-end testing to my existing tests with Mocha. However, I am running into an issue with errors causing exits.
Running the tests below, I would expect something like..
x should fail
check should pass
1 of 2 tests failed:
Actual Output
Back on command prompt.
To run the tests, I am using the grunt task simple-mocha via this configuration...
The test itself boils down to...
I have been able to get the behaviour I want by wrapping the async call at getTitle with a try/catch, like so..
However, I don't believe you are intended to need to do this.
The text was updated successfully, but these errors were encountered: