Last active
July 5, 2018 07:34
-
-
Save reynish/6286294 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 request = require('superagent') | |
, chai = require('chai') | |
, expect = chai.expect; | |
describe("passing browser", function() { | |
var response; | |
before(function(done) { | |
request | |
.get('http://www.google.co.uk/') | |
.end(function(res){ | |
response = res; | |
done(); | |
}); | |
}); | |
it("response is 200", function() { | |
expect(response.status).to.equal(200); | |
}); | |
it("response type", function() { | |
expect(response.type).to.equal("text/html"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment