Skip to content

Commit

Permalink
fix: add relevant type of bitbucketNock and return type
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Oct 18, 2019
1 parent f6d73c7 commit d9dc3b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/bitbucket/BitbucketService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { BitbucketService } from './BitbucketService';

describe('Bitbucket Service', () => {
let service: BitbucketService;
let bitbucketNock: any;
let bitbucketNock: BitbucketNock;

beforeEach(async () => {
service = new BitbucketService({ uri: '.' });
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/bibucketNock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class BitbucketNock {
this.url = 'https://api.bitbucket.org/2.0';
}

getApiResponse(resource: string, id?: number, value?: string) {
getApiResponse(resource: string, id?: number, value?: string): nock.Scope {
let url = `${this.url}/repositories/${this.user}/${this.repoName}/${resource}`;
let response;

Expand Down

0 comments on commit d9dc3b3

Please sign in to comment.