Last active
December 30, 2015 17:59
-
-
Save seethroughdev/7864387 to your computer and use it in GitHub Desktop.
Hi Louis, Here are the 2 versions of the test.
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
// 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