Skip to content

Instantly share code, notes, and snippets.

@seethroughdev
Last active December 30, 2015 17:59
Show Gist options
  • Save seethroughdev/7864387 to your computer and use it in GitHub Desktop.
Save seethroughdev/7864387 to your computer and use it in GitHub Desktop.
Hi Louis, Here are the 2 versions of the test.
// this works as expected
describe("github test", function() {
var res;
res = {};
before(function(done) {
chai.request(githubReqObj.url).get('').req(function(req) {
req.set({
'Accept': 'application/vnd.github.beta+json',
'User-Agent': 'A test application for homebrew cask dotfile'
});
}).res(function(response) {
res = response;
done();
});
});
it("should connect with a 200 status", function() {
expect(res).to.have.status(200);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment