Skip to content

Instantly share code, notes, and snippets.

@mikeyp
Created October 31, 2014 06:02
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 mikeyp/4543c40c7c2d9bdf0b1c to your computer and use it in GitHub Desktop.
Save mikeyp/4543c40c7c2d9bdf0b1c to your computer and use it in GitHub Desktop.
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