jdcataldo / grunt-mocha-phantomjs

A simple grunt wrapper for mocha-phantomjs to allow for ci integration
MIT License
70 stars 40 forks source link

How to handle `onConfirm` in grunt-mocha-phantomjs? #49

Open rjcorwin opened 8 years ago

rjcorwin commented 8 years ago

Hi there, I was wondering if there is a grunt-mocha-phantomjs best practice for using the phantomjs onConfirm callback. I would like to test some things that trigger window.confirm. Maybe writing tests for window.confirm isn't really a thing.

rjcorwin commented 8 years ago

If there is a way, I would be happy to document it.