Skip to content

Instantly share code, notes, and snippets.

View kembuco's full-sized avatar

Kevin Burke kembuco

View GitHub Profile
@kembuco
kembuco / run-mocha.js
Created April 12, 2012 17:55 — forked from joeytrapp/run-mocha.js
JavaScript: PhantomJS Mocha Scrapper
/*global phantom:true, console:true, WebPage:true, Date:true*/
(function () {
var url, timeout, page, defer;
if (phantom.args.length < 1) {
console.log("Usage: phantomjs run-mocha.coffee URL [timeout]");
phantom.exit();
}
url = phantom.args[0];