diff options
| -rw-r--r-- | .snyk | 1 | ||||
| -rw-r--r-- | .travis.yml | 11 | ||||
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | package.json | 28 | ||||
| -rw-r--r-- | test/fetchGitData.js | 8 | ||||
| -rw-r--r-- | test/getOptions.js | 2 |
6 files changed, 29 insertions, 22 deletions
@@ -0,0 +1 @@ +version: v1 diff --git a/.travis.yml b/.travis.yml index 90c3aeb..04aaca5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,11 @@ language: node_js node_js: - - stable - - 4.2 - - 0.10 - - 0.12 + - "node" + - "iojs" + - "6.0" + - "5.0" + - "4.2" + - "0.12" + - "0.10" script: make test-coveralls sudo: false @@ -1,6 +1,7 @@ #node-coveralls [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Codeship Build Status][codeship-image]][codeship-url] +[](https://snyk.io/test/github/nickmerwin/node-coveralls) [Coveralls.io](https://coveralls.io/) support for node.js. Get the great coverage reporting of coveralls.io and add a cool coverage button ( like the one above ) to your README. diff --git a/package.json b/package.json index f10a782..ddec6b5 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/nickmerwin/node-coveralls/issues" }, "scripts": { - "test": "make test" + "test": "snyk test && make test" }, "bin": { "coveralls": "./bin/coveralls.js" @@ -26,22 +26,24 @@ "elliotcable <[email protected]> (http://elliottcable.name/)", "Slotos <[email protected]> (http://slotos.net)", "mattjmorrison <[email protected]> (http://mattjmorrison.com)", - "Arpad Borsos <[email protected]> (http://swatinem.de/)" + "Arpad Borsos <[email protected]> (http://swatinem.de/)", + "Adam Moss (https://github.com/adam-moss)" ], "dependencies": { - "js-yaml": "3.0.1", - "lcov-parse": "0.0.6", - "log-driver": "1.2.4", - "request": "2.69.0", - "minimist": "1.2.0" + "js-yaml": "3.6.1", + "lcov-parse": "0.0.10", + "log-driver": "1.2.5", + "minimist": "1.2.0", + "request": "2.73.0" }, "devDependencies": { - "sinon-restore": "1.0.0", - "mocha-lcov-reporter": "0.0.1", - "mocha": "1.8.1", - "should": "1.1.0", - "istanbul": "0.2.10", - "jshint": "2.1.3" + "istanbul": "0.4.4", + "jshint": "2.9.2", + "mocha": "2.5.3", + "mocha-lcov-reporter": "1.2.0", + "should": "9.0.2", + "sinon-restore": "1.0.1", + "snyk": "1.17.0" }, "engines": { "node": ">=0.8.6" 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(); }); |
