@@ -416,41 +416,38 @@ func TestPRView_Preview(t *testing.T) {
416416 expectedOutputs : []string {
417417 `Blueberries are from a fork` ,
418418 `Open • nobody wants to merge 12 commits into master from blueberries` ,
419- `Participants: marseilles\n` ,
420419 `blueberries taste good` ,
421420 `View this pull request on GitHub: https://github.com/OWNER/REPO/pull/12` ,
422421 },
423422 },
424- "Open PR with metadata by branch " : {
423+ "Open PR with metadata by number " : {
425424 ownerRepo : "master" ,
426- args : "pr view blueberries " ,
427- fixture : "../test/fixtures/prViewPreviewWithMetadataByBranch .json" ,
425+ args : "pr view 12 " ,
426+ fixture : "../test/fixtures/prViewPreviewWithMetadataByNumber .json" ,
428427 expectedOutputs : []string {
429- `Blueberries are a good fruit ` ,
430- `Open • nobody wants to merge 8 commits into master from blueberries` ,
428+ `Blueberries are from a fork ` ,
429+ `Open • nobody wants to merge 12 commits into master from blueberries` ,
431430 `Assignees: marseilles, monaco\n` ,
432- `Labels: one, two, three\n` ,
433- `Projects: The GitHub CLI \(to do list \)\n` ,
431+ `Labels: one, two, three, four, five \n` ,
432+ `Projects: Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C \)\n` ,
434433 `Milestone: uluru\n` ,
435- `Participants: marseilles, monaco, montpellier\n` ,
436434 `blueberries taste good` ,
437- `View this pull request on GitHub: https://github.com/OWNER/REPO/pull/10 \n` ,
435+ `View this pull request on GitHub: https://github.com/OWNER/REPO/pull/12 \n` ,
438436 },
439437 },
440- "Open PR with lots of metadata " : {
438+ "Open PR with metadata by branch " : {
441439 ownerRepo : "master" ,
442- args : "pr view 12 " ,
443- fixture : "../test/fixtures/prViewPreviewWithLotsOfMetadata .json" ,
440+ args : "pr view blueberries " ,
441+ fixture : "../test/fixtures/prViewPreviewWithMetadataByBranch .json" ,
444442 expectedOutputs : []string {
445- `Blueberries are from a fork ` ,
446- `Open • nobody wants to merge 12 commits into master from blueberries` ,
447- `Assignees: marseilles, monaco, montpellier, … \n` ,
448- `Labels: one, two, three, … \n` ,
449- `Projects: Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\), … \n` ,
443+ `Blueberries are a good fruit ` ,
444+ `Open • nobody wants to merge 8 commits into master from blueberries` ,
445+ `Assignees: marseilles, monaco\n` ,
446+ `Labels: one, two, three, four, five \n` ,
447+ `Projects: Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\)\n` ,
450448 `Milestone: uluru\n` ,
451- `Participants: marseilles, monaco, montpellier, …\n` ,
452449 `blueberries taste good` ,
453- `View this pull request on GitHub: https://github.com/OWNER/REPO/pull/12 ` ,
450+ `View this pull request on GitHub: https://github.com/OWNER/REPO/pull/10\n ` ,
454451 },
455452 },
456453 "Open PR for the current branch" : {
0 commit comments