Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
[clean] rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepeak committed Dec 11, 2015
1 parent 4622617 commit ea77764
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ describe("Codecov", function(){
process.env.TRAVIS = "true";

expect(detect().service).to.eql("travis");
process.env.TRAVIS = "";

process.env.TRAVIS = "";
});

it("can select local git service if no service is found", function(){
expect(detect().commit).to.match(/^\w{40}$/);
expect(detect().commit).to.eql(execSync("git rev-parse HEAD || hg id -i --debug | tr -d '+'").toString().trim());
});

});

0 comments on commit ea77764

Please sign in to comment.