Skip to content

Instantly share code, notes, and snippets.

@andyshinn
Created July 11, 2013 00:03
Show Gist options
  • Save andyshinn/5971343 to your computer and use it in GitHub Desktop.
Save andyshinn/5971343 to your computer and use it in GitHub Desktop.
var phantom = require('phantom'), mystatus;
phantom.create(function(ph) {
ph.createPage(function(page) {
page.open('https://localhost:8443/login', function(status) {
mystatus = status
});
});
});
describe("Page Tests", function () {
it('returns correct status', function() {
expect(mystatus).toEqual('success');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment