Created
October 31, 2014 06:02
-
-
Save mikeyp/4543c40c7c2d9bdf0b1c to your computer and use it in GitHub Desktop.
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 assert = require('assert'); | |
var Browser = require('zombie'); | |
describe('example.com cookie', function(){ | |
this.timeout(5000); | |
describe('tests', function(){ | |
// Set host and create browser | |
before(function() { | |
Browser.localhost('127.0.0.1', 4000); | |
this.browser = Browser.create(); | |
}); | |
// load the test page | |
before(function(done) { | |
this.browser.visit('/test.html', done); | |
}); | |
it('should return a 200 status when loading the test page', function(){ | |
assert.ok(this.browser.status) | |
}); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment