Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Jan 9, 2020
1 parent 450064a commit 3733e6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions src/services/bitbucket/BitbucketService.spec.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
import nock from 'nock';
import { PullRequestState } from '../../inspectors';
import {
getIssueCommentsResponse,
getIssueResponse,
getIssuesResponse,
getPullCommitsResponse,
getPullRequestResponse,
getRepoCommit,
getRepoCommits,
} from '../../services/git/__MOCKS__/bitbucketServiceMockFolder';
import { BitbucketPullRequestState, VCSServiceType } from '../git/IVCSService';
import { VCSServicesUtils } from '../git/VCSServicesUtils';
import { argumentsProviderFactory } from '../../test/factories/ArgumentsProviderFactory';
import { BitbucketService } from './BitbucketService';
import { bitbucketPullRequestResponseFactory } from '../../test/factories/responses/bitbucket/prResponseFactory';
import { BitbucketNock } from '../../test/helpers/bitbucketNock';
import { bitbucketIssueResponseFactory } from '../../test/factories/responses/bitbucket/issueResponseFactory';
import { bitbucketIssueCommentResponseFactory } from '../../test/factories/responses/bitbucket/issueCommentResponseFactory';
import { bitbucketIssueResponseFactory } from '../../test/factories/responses/bitbucket/issueResponseFactory';
import { bitbucketPullRequestResponseFactory } from '../../test/factories/responses/bitbucket/prResponseFactory';
import { bitbucketPullCommitsResponseFactory } from '../../test/factories/responses/bitbucket/pullCommitsFactory';
import { bitbucketListCommitResponseFactory } from '../../test/factories/responses/bitbucket/listRepoCommitsResponseFactory';
import { bitbucketRepoCommitsResponseFactory } from '../../test/factories/responses/bitbucket/repoCommitsResponseFactory';
import { BitbucketNock } from '../../test/helpers/bitbucketNock';
import { BitbucketPullRequestState, VCSServiceType } from '../git/IVCSService';
import { VCSServicesUtils } from '../git/VCSServicesUtils';
import { BitbucketService } from './BitbucketService';

describe('Bitbucket Service', () => {
let service: BitbucketService;
Expand Down Expand Up @@ -174,7 +171,7 @@ describe('Bitbucket Service', () => {

it('returns repo commits in own interface', async () => {
const mockRepoCommit = bitbucketRepoCommitsResponseFactory();
bitbucketNock.listCommitResponse([mockRepoCommit]);
bitbucketNock.listCommitsResponse([mockRepoCommit]);

const response = await service.getRepoCommits('pypy', 'pypy');
expect(response).toMatchObject(getRepoCommits());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const getPullCommitsResponse = (items?: PullCommits[]): Paginated<PullCom
];
return {
items: items || defaultItems,
totalCount: items?.legth || 1,
totalCount: items?.length || 1,
hasNextPage: true,
hasPreviousPage: true,
page: 1,
Expand Down

0 comments on commit 3733e6a

Please sign in to comment.