summaryrefslogtreecommitdiffstats
path: root/pkg/gui/presentation
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-08-08 08:35:09 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-08-28 14:21:06 +0200
commit72731f2c16287e4bdde445b7c92557af2727ad61 (patch)
tree61dbfc64817f0f2cb33da3de87a8c0edd82f63b3 /pkg/gui/presentation
parentf680b6e82e4dfdd31b3aaa9c95e77e25e73b517d (diff)
Change RenderDisplayStrings to return a slice of strings
We'll join them with newlines afterwards. This will make it easier to insert other (non-model) items.
Diffstat (limited to 'pkg/gui/presentation')
-rw-r--r--pkg/gui/presentation/commits_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/presentation/commits_test.go b/pkg/gui/presentation/commits_test.go
index 493260ad2..5167681cd 100644
--- a/pkg/gui/presentation/commits_test.go
+++ b/pkg/gui/presentation/commits_test.go
@@ -422,7 +422,8 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
s.showYouAreHereLabel,
)
- renderedResult := utils.RenderDisplayStrings(result, nil)
+ renderedLines := utils.RenderDisplayStrings(result, nil)
+ renderedResult := strings.Join(renderedLines, "\n")
t.Logf("\n%s", renderedResult)
assert.EqualValues(t, s.expected, renderedResult)