Skip to content

Instantly share code, notes, and snippets.

@mikeyp mikeyp/test.js
Created Oct 31, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.