aboutsummaryrefslogtreecommitdiffstats
path: root/commands/comment_test.go
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-08-23 11:02:23 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-08-23 11:02:23 -0400
commit0f885d4fb55d7133f7b4c4fe9b94c14511db673c (patch)
treee379a6797478e2ffbc083a68a4061bc88668a510 /commands/comment_test.go
parentff1b7448c9dab4a3723cb12ada49bc73ea7dc755 (diff)
downloadgit-bug-0f885d4fb55d7133f7b4c4fe9b94c14511db673c.tar.gz
fix(850): normalize Windows line endings -> *nix
Diffstat (limited to 'commands/comment_test.go')
-rw-r--r--commands/comment_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/comment_test.go b/commands/comment_test.go
index c2e7cb36..74cfee81 100644
--- a/commands/comment_test.go
+++ b/commands/comment_test.go
@@ -155,6 +155,6 @@ func requireCommentsEqual(t *testing.T, golden string, env *testEnv) {
fileName := fmt.Sprintf(goldenFilePatter, golden, i)
exp, err := ioutil.ReadFile(fileName)
require.NoError(t, err)
- require.Equal(t, string(exp), comment.message)
+ require.Equal(t, string(exp), strings.ReplaceAll(comment.message, "\r", ""))
}
}