diff options
| author | Gabe Hayes <[email protected]> | 2013-07-30 10:17:21 -0700 |
|---|---|---|
| committer | Gabe Hayes <[email protected]> | 2013-07-30 10:17:21 -0700 |
| commit | 11f429f64c225a3e933458aff5b4e500f274455b (patch) | |
| tree | ebe448e8e5a9b60b0d96aecbcba2229d625d1667 /test | |
| parent | 5493d956d003dc6e1db8e21684cfc60b2fbc8a24 (diff) | |
| download | node-coveralls-11f429f64c225a3e933458aff5b4e500f274455b.tar.xz node-coveralls-11f429f64c225a3e933458aff5b4e500f274455b.zip | |
fixed git test
Diffstat (limited to 'test')
| -rw-r--r-- | test/fetchGitData.js | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/test/fetchGitData.js b/test/fetchGitData.js index 80c116f..a036e50 100644 --- a/test/fetchGitData.js +++ b/test/fetchGitData.js @@ -144,21 +144,20 @@ describe("fetchGitData", function(){ ] }); }); - xit("should execute git commands when a valid commit hash is given", function() { - process.env.COVERALLS_GIT_COMMIT = "5eaec7e76af0743f9764e617472ef434f283a195"; + it("should execute git commands when a valid commit hash is given", function() { + process.env.COVERALLS_GIT_COMMIT = "HEAD"; process.env.COVERALLS_GIT_BRANCH = "master"; var options = getOptions().git; - options.head.should.eql({ - "id": "5eaec7e76af0743f9764e617472ef434f283a195", - "author_name": "cainus", - "author_email": "[email protected]", - "committer_name": "cainus", - "committer_email": "[email protected]", - "message": "first commit" - }); + options.head.should.be.a("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.equal("master"); options.should.have.property("remotes"); options.remotes.should.be.instanceof(Array); options.remotes.length.should.be.above(0); }); + it("should join passed remotes when a valid commit hash is given", function() { + + }); }); |
