metaskills/mocha-phantomjs — pull request #68 by alexgorbatchev (2013-06-06 14:31:34+00:00)
Title: Should fail when there is a page error

It seems that `mocha-phantomjs` ignores page errors and exists with 0. This can completely disable entire spec suits if there's a reference error for example.

This patch adds `onError` handler and fails the test if there's a page error.