Skip to content

Instantly share code, notes, and snippets.

@mansona
Created December 3, 2012 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mansona/4196458 to your computer and use it in GitHub Desktop.
Save mansona/4196458 to your computer and use it in GitHub Desktop.
Zombie Basic Example
var zombie = require("zombie");
var assert = require("assert");
zombie.debug = true;
var browser = new zombie();
browser.visit("http://google.com/")
.then(function(){
assert.equal(browser.statusCode, 401);
}).fail(function(e){
console.log("fail");
console.log(e);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment