component-test
component-test copied to clipboard
make sure we have a reasonable error when phantomjs isn't installed
can we just:
var which = require('which').sync;
var phantom = which('phantomjs');
if (!phantom) {
throw new Error('phantomjs is not installed :(');
}