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

Commit

Permalink
Also test that an error is thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth committed Feb 21, 2017
1 parent da6847e commit e70ca5a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/services/circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,14 @@ describe("Circle CI Provider", function(){
});
});

it ("throws if repo slug cannot be detected", function(){
delete process.env.CIRCLE_PR_NUMBER;
delete process.env.CIRCLE_PROJECT_USERNAME;
delete process.env.CIRCLE_PROJECT_REPONAME;
delete process.env.CIRCLE_REPOSITORY_URL;
expect(function(){
circle.configuration();
}).to.throw(Error);
});

});

0 comments on commit e70ca5a

Please sign in to comment.