Skip to content

Instantly share code, notes, and snippets.

@nsbingham
Created August 27, 2013 16:08
Show Gist options
  • Save nsbingham/6355581 to your computer and use it in GitHub Desktop.
Save nsbingham/6355581 to your computer and use it in GitHub Desktop.
var should = require('chai').should(),
config = require('config'),
http = require('http');
module.exports = function(){
var pageUrl = "http://www.cnn.com/testing";
console.log('loaded?');
describe.only("when visting http://www.cnn.com/testing modern.IE", function(){
it("should return a 404 error code", function(done){
http
.get(pageUrl, function(res){
res.statusCode.should.equal(404);
done();
})
.on('error', function(e){
done();
return false;
});
});
});
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment