diff --git a/src/services/git/__MOCKS__/gitHubServiceMockFolder/getPullServiceResponse.mock.ts b/src/services/git/__MOCKS__/gitHubServiceMockFolder/getPullServiceResponse.mock.ts index bfe0a105c..6efc602c1 100644 --- a/src/services/git/__MOCKS__/gitHubServiceMockFolder/getPullServiceResponse.mock.ts +++ b/src/services/git/__MOCKS__/gitHubServiceMockFolder/getPullServiceResponse.mock.ts @@ -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' }, }; diff --git a/src/services/git/__MOCKS__/gitHubServiceMockFolder/getPullsServiceResponse.mock.ts b/src/services/git/__MOCKS__/gitHubServiceMockFolder/getPullsServiceResponse.mock.ts index cf3d152b5..97d8c3658 100644 --- a/src/services/git/__MOCKS__/gitHubServiceMockFolder/getPullsServiceResponse.mock.ts +++ b/src/services/git/__MOCKS__/gitHubServiceMockFolder/getPullsServiceResponse.mock.ts @@ -20,11 +20,11 @@ export const getPullsServiceResponse: Paginated = { }, 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' }, }, diff --git a/test/helpers/gitHubNock.ts b/test/helpers/gitHubNock.ts index 13e59eca0..3471cb511 100644 --- a/test/helpers/gitHubNock.ts +++ b/test/helpers/gitHubNock.ts @@ -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) { @@ -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) {