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

Commit

Permalink
Clear Travis env after test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjørn authored and Bjørn committed Dec 8, 2015
1 parent 1777030 commit 8c3cf10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ describe("Codecov", function(){
process.env.TRAVIS = "true";

expect(detect().service).to.eql("travis");

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

it("can select local git service if no service is found", function(){
process.env.APPVEYOR = "";

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 8c3cf10

Please sign in to comment.