1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-07 22:02:56 +03:00

Make test assertion more specific

It's safe to rely on git padding the log messages with exactly four spaces (I
think). This makes the diff of the following commit slightly clearer.
This commit is contained in:
Stefan Haller
2024-03-03 17:58:29 +01:00
parent e1b341e174
commit 287195b5b2

View File

@@ -33,8 +33,8 @@ var AddCoAuthor = NewIntegrationTest(NewIntegrationTestArgs{
}) })
t.Views().Main().ContainsLines( t.Views().Main().ContainsLines(
Contains("initial commit"), Equals(" initial commit"),
Contains("Co-authored-by: John Smith <jsmith@gmail.com>"), Equals(" Co-authored-by: John Smith <jsmith@gmail.com>"),
) )
}, },
}) })