[Pkg-javascript-commits] [node-coveralls] 111/332: More regular-case detached head (e.g. Travis) fixes

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:53:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-coveralls.

commit a591244f4467500b29ce1edb313e87dfd2e12f5b
Author: Christophe Porteneuve <tdd at tddsworld.com>
Date:   Fri Nov 15 08:35:56 2013 +0100

    More regular-case detached head (e.g. Travis) fixes
---
 test/getOptions.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/getOptions.js b/test/getOptions.js
index 4b830be..c1abc1f 100644
--- a/test/getOptions.js
+++ b/test/getOptions.js
@@ -167,7 +167,10 @@ var testGitBranch = function(sut, done){
 var testGitBranchDetection = function(sut, done){
   var localGit = ensureLocalGitContext();
   sut(function(err, options) {
-    options.git.branch.should.equal(localGit.branch);
+    if (localGit.branch)
+      options.git.branch.should.equal(localGit.branch);
+    else
+      options.git.should.not.have.property('branch');
     localGit.wrapUp();
     done();
   });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git



More information about the Pkg-javascript-commits mailing list