Skip to content

Commit

Permalink
Fixed unit test and indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin committed Jun 30, 2018
1 parent 4ffd298 commit 16a5b4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/Bitbucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ describe('Bitbucket', function() {
let result = client.refreshTokens();

// assert
expect(result.catch((err) => {
return result.catch((err) => {
expect(err.toString()).to.equal('Error: Can not refresh access token by given refresh: refreshToken. Stack trace: foobar');
}));
});
});

it('should throw an error if response is not valid JSON', function() {
Expand Down
7 changes: 3 additions & 4 deletions test/Jira.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,9 @@ describe('Jira', function() {
let result = jira.transitionIssue(issueId, options);

// assert
return result
.catch((err) => {
expect(err.toString()).to.equal('Error: Can not transition issue FOO-666 to 323. Stack trace: bad request');
});
return result.catch((err) => {
expect(err.toString()).to.equal('Error: Can not transition issue FOO-666 to 323. Stack trace: bad request');
});
});

it('should return empty response if successful', function() {
Expand Down

0 comments on commit 16a5b4f

Please sign in to comment.