Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 70a5347

Browse files
Fixing tests
1 parent 09da406 commit 70a5347

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/GitHub.InlineReviews.UnitTests/Services/PullRequestSessionTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace GitHub.InlineReviews.UnitTests.Services
2020
public class PullRequestSessionTests
2121
{
2222
const int PullRequestNumber = 5;
23+
const string PullRequestNodeId = "pull_request_id";
2324
const string RepoUrl = "https://foo.bar/owner/repo";
2425
const string FilePath = "test.cs";
2526

@@ -521,9 +522,8 @@ public async Task PostsToCorrectForkWithNoPendingReview()
521522

522523
await service.Received(1).PostStandaloneReviewComment(
523524
target.LocalRepository,
524-
"owner",
525525
target.User,
526-
PullRequestNumber,
526+
PullRequestNodeId,
527527
"New Comment",
528528
"COMMIT_ID",
529529
"file.cs",
@@ -540,9 +540,8 @@ public async Task PostsReplyToCorrectForkWithNoPendingReview()
540540

541541
await service.Received(1).PostStandaloneReviewCommentReply(
542542
target.LocalRepository,
543-
"owner",
544543
target.User,
545-
PullRequestNumber,
544+
PullRequestNodeId,
546545
"New Comment",
547546
1);
548547
}

0 commit comments

Comments
 (0)