1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 16:03:07 +03:00

Cleanup: reformat

We usually put Lines() on a line by itself, and it makes the diff of the next
commit much easier to read.
This commit is contained in:
Stefan Haller
2025-11-16 19:10:21 +01:00
parent 9f930eee06
commit e3a09eacd1

View File

@@ -42,12 +42,13 @@ var Checkout = NewIntegrationTest(NewIntegrationTestArgs{
Tooltip(Contains("Disabled: No branches found at selected commit.")). Tooltip(Contains("Disabled: No branches found at selected commit.")).
Select(MatchesRegexp("Checkout commit [a-f0-9]+ as detached head")). Select(MatchesRegexp("Checkout commit [a-f0-9]+ as detached head")).
Confirm() Confirm()
t.Views().Branches().Lines( t.Views().Branches().
Contains("* (HEAD detached at"), Lines(
Contains("branch1"), Contains("* (HEAD detached at"),
Contains("branch2"), Contains("branch1"),
Contains("master"), Contains("branch2"),
) Contains("master"),
)
t.Views().Commits(). t.Views().Commits().
NavigateToLine(Contains("two")). NavigateToLine(Contains("two")).
@@ -63,10 +64,11 @@ var Checkout = NewIntegrationTest(NewIntegrationTestArgs{
). ).
Select(Contains("Checkout branch 'master'")). Select(Contains("Checkout branch 'master'")).
Confirm() Confirm()
t.Views().Branches().Lines( t.Views().Branches().
Contains("master"), Lines(
Contains("branch1"), Contains("master"),
Contains("branch2"), Contains("branch1"),
) Contains("branch2"),
)
}, },
}) })