aboutsummaryrefslogtreecommitdiff
path: root/test/fetchGitData.js
diff options
context:
space:
mode:
authorNick Merwin <[email protected]>2016-09-15 10:11:26 -0700
committerNick Merwin <[email protected]>2016-09-15 10:11:26 -0700
commite8122cebf6eda6bd4e196f032e89b55797f1db4b (patch)
treef5e3ad51bc266e9a3be7d97774193b921026aaf6 /test/fetchGitData.js
parent993332233a2f02695a769e2c17c0d593a96b14c9 (diff)
parentb92746cd71fd1b0e7cb65dbca7f64270db62eed6 (diff)
downloadnode-coveralls-e8122cebf6eda6bd4e196f032e89b55797f1db4b.tar.xz
node-coveralls-e8122cebf6eda6bd4e196f032e89b55797f1db4b.zip
Merge branch 'master' into pr/127
Diffstat (limited to 'test/fetchGitData.js')
-rw-r--r--test/fetchGitData.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/fetchGitData.js b/test/fetchGitData.js
index cd0a679..012e129 100644
--- a/test/fetchGitData.js
+++ b/test/fetchGitData.js
@@ -98,14 +98,14 @@ describe("fetchGitData", function(){
"covert": "to a string"
}
}, function(err, str){
- str.branch.should.be.a("string");
+ str.branch.should.be.String();
fetchGitData({
"head": {
"id": "COMMIT_HASH"
},
"branch": ["convert", "to", "a", "string"]
}, function(err, str){
- str.branch.should.be.a("string");
+ str.branch.should.be.String();
done();
});
});
@@ -168,11 +168,11 @@ describe("fetchGitData", function(){
process.env.COVERALLS_GIT_BRANCH = "master";
getOptions(function(err, options){
options = options.git;
- options.head.should.be.a("object");
+ options.head.should.be.Object();
options.head.author_name.should.not.equal("Unknown Author");
options.head.committer_name.should.not.equal("Unknown Committer");
options.head.message.should.not.equal("Unknown Commit Message");
- options.branch.should.be.a("string");
+ options.branch.should.be.String();
options.should.have.property("remotes");
options.remotes.should.be.instanceof(Array);
options.remotes.length.should.be.above(0);