Skip to content

Commit

Permalink
fix: revert changes and fix tets
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Nov 27, 2019
1 parent 741e491 commit 0437471
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export const getPullServiceResponse: PullRequest = {
},
body: '',
closedAt: '2011-01-26T19:01:12Z',
createdAt: '2012-03-06T23:06:50Z',
createdAt: '2011-01-26T19:01:12Z',
id: 1,
mergedAt: '2011-01-26T19:01:12Z',
state: 'closed',
updatedAt: '2012-03-06T23:06:50Z',
updatedAt: '2011-01-26T19:01:12Z',
url: 'https://api.github.com/repos/octocat/Hello-World/pulls/1',
user: { id: '583231', login: 'octocat', url: 'https://api.github.com/users/octocat' },
};
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ export const getPullsServiceResponse: Paginated<PullRequest> = {
},
body: 'Please pull these awesome changes',
closedAt: '2011-01-26T19:01:12Z',
createdAt: '2012-03-06T23:06:50Z',
createdAt: '2011-01-26T19:01:12Z',
id: 1,
mergedAt: '2011-01-26T19:01:12Z',
state: 'open',
updatedAt: '2012-03-06T23:06:50Z',
updatedAt: '2011-01-26T19:01:12Z',
url: 'https://api.github.com/repos/octocat/Hello-World/pulls/1347',
user: { id: '1', login: 'octocat', url: 'https://api.github.com/users/octocat' },
},
Expand Down
4 changes: 2 additions & 2 deletions test/helpers/gitHubNock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class GitHubNock {
): PullRequestItem[] {
const responseBody = pulls.map(({ number, state, title, body, head, base, created_at, updated_at }) => {
if (!created_at) {
created_at = '2012-03-06T23:06:50Z';
created_at = '2011-01-26T19:01:12Z';
}

if (!updated_at) {
Expand Down Expand Up @@ -77,7 +77,7 @@ export class GitHubNock {
updated_at?: string,
): PullRequest {
if (!created_at) {
created_at = '2012-03-06T23:06:50Z';
created_at = '2011-01-26T19:01:12Z';
}

if (!updated_at) {
Expand Down

0 comments on commit 0437471

Please sign in to comment.