aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdam Moss <[email protected]>2016-05-11 21:05:22 +0100
committerAdam Moss <[email protected]>2016-07-12 21:52:58 +0100
commita87354b2bc947b74bcf338b9eb587c12d9cd5c5a (patch)
tree11f5be21d06e23c7a50f526aa05b7baa30403115 /test
parent57db7194851af1c773ac35fa5312606823f8ee82 (diff)
downloadnode-coveralls-a87354b2bc947b74bcf338b9eb587c12d9cd5c5a.tar.xz
node-coveralls-a87354b2bc947b74bcf338b9eb587c12d9cd5c5a.zip
Update CI, vulnerability checking, and dependencies.
Diffstat (limited to 'test')
-rw-r--r--test/fetchGitData.js8
-rw-r--r--test/getOptions.js2
2 files changed, 5 insertions, 5 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);
diff --git a/test/getOptions.js b/test/getOptions.js
index 3394a85..98c0ea5 100644
--- a/test/getOptions.js
+++ b/test/getOptions.js
@@ -203,7 +203,7 @@ var testGitBranchDetection = function(sut, done){
if (localGit.branch)
options.git.branch.should.equal(localGit.branch);
else
- options.git.should.not.have.property('branch');
+ options.git.should.not.have.key('branch');
localGit.wrapUp();
done();
});