Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Aug 17, 2016
1 parent 95c4dfd commit 377b8a7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/getOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 377b8a7

Please sign in to comment.