From a87354b2bc947b74bcf338b9eb587c12d9cd5c5a Mon Sep 17 00:00:00 2001 From: Adam Moss Date: Wed, 11 May 2016 21:05:22 +0100 Subject: Update CI, vulnerability checking, and dependencies. --- test/fetchGitData.js | 8 ++++---- test/getOptions.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test') 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(); }); -- cgit v1.2.3