diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-03-03 17:58:29 +0100 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-03-11 09:18:40 +0100 |
commit | 287195b5b243be74828cd4409e0ec049ce56bc30 (patch) | |
tree | cc0972b74b7a52ee305217f0cd3ee86ebdfca6c9 /pkg/integration | |
parent | e1b341e174ef2dcb5b0abb4eead81397bee076cd (diff) |
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.
Diffstat (limited to 'pkg/integration')
-rw-r--r-- | pkg/integration/tests/commit/add_co_author.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/integration/tests/commit/add_co_author.go b/pkg/integration/tests/commit/add_co_author.go index 3a2021dac..46ac0d055 100644 --- a/pkg/integration/tests/commit/add_co_author.go +++ b/pkg/integration/tests/commit/add_co_author.go @@ -33,8 +33,8 @@ var AddCoAuthor = NewIntegrationTest(NewIntegrationTestArgs{ }) t.Views().Main().ContainsLines( - Contains("initial commit"), - Contains("Co-authored-by: John Smith <jsmith@gmail.com>"), + Equals(" initial commit"), + Equals(" Co-authored-by: John Smith <jsmith@gmail.com>"), ) }, }) |