matthewmueller / component-test

Minimal configuration component test runner supporting browser testing, phantomjs, and saucelabs.
98 stars 10 forks source link

make sure we have a reasonable error when phantomjs isn't installed #6

Open matthewmueller opened 10 years ago

stephenmathieson commented 10 years ago

can we just:

var which = require('which').sync;
var phantom = which('phantomjs');

if (!phantom) {
  throw new Error('phantomjs is not installed :(');
}