nathanboktae / mocha-casperjs

Write CasperJS tests using Mocha
MIT License
120 stars 29 forks source link

Catch HTTP status code #54

Closed MalcolmK closed 9 years ago

MalcolmK commented 9 years ago

Hey,

In CasperJS it is possible to add handlers for http status codes. But I'm not sure how to do this when using mocha-casperjs, because you are not creating a new casper object.

Regards,

Malcolm Kindermans

nathanboktae commented 9 years ago

Can you not add your handlers to casper.options.httpStatusHandlers before any test runs?

nathanboktae commented 9 years ago

Reopen if setting casper.options.httpStatusHandlers doesn't work for you.