Skip to content

Commit e461af9

Browse files
committed
Why wasn't this caught by the compiler?
1 parent 4c09bf1 commit e461af9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/view/prsTree.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ describe('GitHub Pull Requests view', function () {
151151
);
152152
});
153153
}).pullRequest;
154-
const prItem0 = parseGraphQLPullRequest(pr0.repository.pullRequest, gitHubRepository);
154+
const prItem0 = await parseGraphQLPullRequest(pr0.repository.pullRequest, gitHubRepository);
155155
const pullRequest0 = new PullRequestModel(credentialStore, telemetry, gitHubRepository, remote, prItem0);
156156

157157
const pr1 = gitHubRepository.addGraphQLPullRequest(builder => {
@@ -168,7 +168,7 @@ describe('GitHub Pull Requests view', function () {
168168
);
169169
});
170170
}).pullRequest;
171-
const prItem1 = parseGraphQLPullRequest(pr1.repository.pullRequest, gitHubRepository);
171+
const prItem1 = await parseGraphQLPullRequest(pr1.repository.pullRequest, gitHubRepository);
172172
const pullRequest1 = new PullRequestModel(credentialStore, telemetry, gitHubRepository, remote, prItem1);
173173

174174
const repository = new MockRepository();

0 commit comments

Comments
 (0)