diff options
| author | Christophe Porteneuve <[email protected]> | 2013-11-14 20:33:23 +0100 |
|---|---|---|
| committer | Christophe Porteneuve <[email protected]> | 2013-11-14 20:33:23 +0100 |
| commit | 6ca3aec602027774dd159c9ff41ed69e835073b0 (patch) | |
| tree | 7b2d10df0d43f72b6ae4822c2e922f45d969eb9f /test/fetchGitData.js | |
| parent | b12c8cf5f0bc11486e2b064a834ee9ff81adb0a3 (diff) | |
| download | node-coveralls-6ca3aec602027774dd159c9ff41ed69e835073b0.tar.xz node-coveralls-6ca3aec602027774dd159c9ff41ed69e835073b0.zip | |
Massive expansion of test coverage: 100% of detectLocalGit + numerous missing lines in other files
Diffstat (limited to 'test/fetchGitData.js')
| -rw-r--r-- | test/fetchGitData.js | 6 |
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){ |
