Skip to content

Instantly share code, notes, and snippets.

@garrensmith
Created February 21, 2011 15:58
Show Gist options
  • Select an option

  • Save garrensmith/837260 to your computer and use it in GitHub Desktop.

Select an option

Save garrensmith/837260 to your computer and use it in GitHub Desktop.
Zombie: GET http://localhost:3000/
Zombie: GET http://localhost:3000/ => 200
Zombie: GET https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js
Zombie: GET http://localhost:3000/javascripts/frontpage.js
Zombie: GET http://localhost:3000/javascripts/frontpage.js => 200
Zombie: Running script from /javascripts/frontpage.js
Error
TypeError: Cannot call method 'toString' of null
at /usr/local/lib/node/.npm/zombie/0.9.1/package/lib/zombie/resources.js:25:15
at Resource.toString (/usr/local/lib/node/.npm/zombie/0.9.1/package/lib/zombie/resources.js:58:172)
at /usr/local/lib/node/.npm/zombie/0.9.1/package/lib/zombie/resources.js:136:25
at Resources.map (native)
at Resources.toString (/usr/local/lib/node/.npm/zombie/0.9.1/package/lib/zombie/resources.js:135:19)
at String.STRING_ADD_LEFT (native)
at isRegExp (util.js:266:3)
at format (util.js:163:11)
at util.js:195:19
at Array.map (native)
var zombie = require("zombie"),
assert = require("assert");
zombie.visit("http://localhost:3000/", { debug: true }, function (err, browser, status) {
if (err) {
console.log("Error");
console.log(err);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment