From 6ca3aec602027774dd159c9ff41ed69e835073b0 Mon Sep 17 00:00:00 2001 From: Christophe Porteneuve Date: Thu, 14 Nov 2013 20:33:23 +0100 Subject: Massive expansion of test coverage: 100% of detectLocalGit + numerous missing lines in other files --- test/fetchGitData.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/fetchGitData.js') 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){ -- cgit v1.2.3