Created
December 3, 2012 17:15
-
-
Save mansona/4196458 to your computer and use it in GitHub Desktop.
Zombie Basic Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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