[Pkg-javascript-commits] [node-coveralls] 264/332: Add a test
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Nov 9 13:54:09 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 377b8a7345858e4af88e5a7dcc51552a8b712aef
Author: Paul Betts <paul at paulbetts.org>
Date: Wed Aug 17 13:23:27 2016 -0700
Add a test
---
test/getOptions.js | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/test/getOptions.js b/test/getOptions.js
index 3394a85..eefd083 100644
--- a/test/getOptions.js
+++ b/test/getOptions.js
@@ -418,6 +418,26 @@ var testGitlab = function(sut, done) {
});
};
+var testGitlab = function(sut, done) {
+ process.env.CI_NAME = 'surf';
+ process.env.SURF_SHA1 = "e3e3e3e3e3e3e3e3e";
+ process.env.SURF_REF = "feature";
+ sut(function(err, options){
+ options.service_name.should.equal("surf");
+ options.git.should.eql({ head:
+ { id: 'e3e3e3e3e3e3e3e3e',
+ author_name: 'Unknown Author',
+ author_email: '',
+ committer_name: 'Unknown Committer',
+ committer_email: '',
+ message: 'Unknown Commit Message' },
+ branch: 'feature',
+ remotes: [] });
+ done();
+ });
+};
+
+
function ensureLocalGitContext(options) {
var path = require('path');
var fs = require('fs');
--
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