aboutsummaryrefslogtreecommitdiff
path: root/test/fetchGitData.js
diff options
context:
space:
mode:
authorGregg Caines <[email protected]>2013-11-15 13:08:29 -0800
committerGregg Caines <[email protected]>2013-11-15 13:08:29 -0800
commit097ce4e175e701efb95fd8aeaeb81a9d929d90ba (patch)
tree97bf43b178f0f21b168c10474afbae7627ecc652 /test/fetchGitData.js
parentd52c62b04c5c11fd931ca967f09621d03c330f88 (diff)
parenta639b7dcb280f3b1ab6c8357fb3c8b9057543e79 (diff)
downloadnode-coveralls-097ce4e175e701efb95fd8aeaeb81a9d929d90ba.tar.xz
node-coveralls-097ce4e175e701efb95fd8aeaeb81a9d929d90ba.zip
Merge pull request #25 from tdd/master
Fix direct dev use on a local Git repo + improve Git metadata fetching
Diffstat (limited to 'test/fetchGitData.js')
-rw-r--r--test/fetchGitData.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/fetchGitData.js b/test/fetchGitData.js
index de5c474..9c00828 100644
--- a/test/fetchGitData.js
+++ b/test/fetchGitData.js
@@ -9,6 +9,12 @@ describe("fetchGitData", function(){
it("should throw an error when no data is passed", function() {
fetchGitData.should.throw(/fetchGitData requires a callback/);
});
+ it('should throw an error when no git context is provided', function(done) {
+ fetchGitData(undefined, function(err){
+ err.should.match(/No options passed/);
+ done();
+ });
+ });
it("should throw an error if no head is provided", function(done) {
fetchGitData({
}, function(err){