From 5a179621886aa0dc2162e6be82bc156095775161 Mon Sep 17 00:00:00 2001 From: Toshiya Doi Date: Sat, 4 Apr 2020 12:53:22 +0900 Subject: [PATCH] Add a new line to test a dynamic string of metadata --- command/issue_test.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/command/issue_test.go b/command/issue_test.go index e8f3642e4..1d5b2db33 100644 --- a/command/issue_test.go +++ b/command/issue_test.go @@ -299,7 +299,7 @@ func TestIssueView_Preview(t *testing.T) { expectedOutputs: []string{ `ix of coins`, `Open • marseilles opened about 292 years ago • 9 comments`, - `Participants: marseilles`, + `Participants: marseilles\n`, `bold story`, `View this issue on GitHub: https://github.com/OWNER/REPO/issues/123`, }, @@ -311,11 +311,11 @@ func TestIssueView_Preview(t *testing.T) { expectedOutputs: []string{ `ix of coins`, `Open • marseilles opened about 292 years ago • 9 comments`, - `Assignees: marseilles, monaco`, - `Labels: one, two, three`, - `Projects: The GitHub CLI \(to do list\)`, - `Milestone: uluru`, - `Participants: marseilles, monaco, montpellier`, + `Assignees: marseilles, monaco\n`, + `Labels: one, two, three\n`, + `Projects: The GitHub CLI \(to do list\)\n`, + `Milestone: uluru\n`, + `Participants: marseilles, monaco, montpellier\n`, `bold story`, `View this issue on GitHub: https://github.com/OWNER/REPO/issues/123`, }, @@ -326,12 +326,12 @@ func TestIssueView_Preview(t *testing.T) { fixture: "../test/fixtures/issueView_previewWithLotsOfMetadata.json", expectedOutputs: []string{ `ix of coins`, - `Open • marseilles opened about 292 years ago • 9 comments`, - `Assignees: marseilles, monaco, montpellier, …`, - `Labels: one, two, three, …`, - `Projects: Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\), …`, - `Milestone: uluru`, - `Participants: marseilles, monaco, montpellier, …`, + `Open • marseilles opened about 292 years ago • 9 comments\n`, + `Assignees: marseilles, monaco, montpellier, …\n`, + `Labels: one, two, three, …\n`, + `Projects: Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\), …\n`, + `Milestone: uluru\n`, + `Participants: marseilles, monaco, montpellier, …\n`, `bold story`, `View this issue on GitHub: https://github.com/OWNER/REPO/issues/123`, },