@@ -426,8 +426,30 @@ func TestGitHubDownloadRepo(t *testing.T) {
426
426
ReviewerName : "lunny" ,
427
427
CommitID : "2be9101c543658591222acbee3eb799edfc3853d" ,
428
428
CreatedAt : time .Date (2020 , 01 , 04 , 06 , 07 , 06 , 0 , time .UTC ),
429
- State : base .ReviewStateRequestChanges ,
429
+ State : base .ReviewStateChangesRequested ,
430
430
Content : "Don't add more reviews" ,
431
431
},
432
+ {
433
+ ID : 338349019 ,
434
+ IssueIndex : 4 ,
435
+ ReviewerID : 81045 ,
436
+ ReviewerName : "lunny" ,
437
+ CommitID : "2be9101c543658591222acbee3eb799edfc3853d" ,
438
+ CreatedAt : time .Date (2020 , 01 , 04 , 11 , 21 , 41 , 0 , time .UTC ),
439
+ State : base .ReviewStateCommented ,
440
+ Comments : []* base.ReviewComment {
441
+ {
442
+ ID : 363029944 ,
443
+ Content : "test a single comment." ,
444
+ TreePath : "LICENSE" ,
445
+ Position : 4 ,
446
+ CommitID : "2be9101c543658591222acbee3eb799edfc3853d" ,
447
+ PosterID : 81045 ,
448
+ Reactions : & base.Reactions {},
449
+ CreatedAt : time .Date (2020 , 01 , 04 , 11 , 21 , 41 , 0 , time .UTC ),
450
+ UpdatedAt : time .Date (2020 , 01 , 04 , 11 , 21 , 41 , 0 , time .UTC ),
451
+ },
452
+ },
453
+ },
432
454
}, reviews )
433
455
}
0 commit comments