From ecb13e11c3d7dd29552e5872329d8d0ea4a18fde Mon Sep 17 00:00:00 2001 From: Gabe Hayes Date: Mon, 29 Jul 2013 10:47:56 -0700 Subject: added full test coverage on fetchGitData --- lib/fetchGitData.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/fetchGitData.js') diff --git a/lib/fetchGitData.js b/lib/fetchGitData.js index d79a3db..6ab0209 100644 --- a/lib/fetchGitData.js +++ b/lib/fetchGitData.js @@ -55,9 +55,6 @@ var fetchGitData = function(git) { } //-- Set required properties of git if they weren"t provided - if (!git.hasOwnProperty("head")) { - git.head = {}; - } if (!git.hasOwnProperty("branch")) { git.branch = ""; } @@ -66,13 +63,10 @@ var fetchGitData = function(git) { } //-- Assert the property types - if ("object" !== typeof git.head) { - git.head = {}; - } if ("string" !== typeof git.branch) { git.branch = ""; } - if (!git.remotes.hasOwnProperty("length")) { + if (!(git.remotes instanceof Array)) { git.remotes = []; } -- cgit v1.2.3