diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-08-23 11:22:42 -0400 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2022-08-23 11:22:42 -0400 |
commit | c4a4d457f7327083d530c2b70e2e41e04f1f13f6 (patch) | |
tree | f2265bda956583473f54644bd2b1d04e483b453e /commands/comment_test.go | |
parent | 0f885d4fb55d7133f7b4c4fe9b94c14511db673c (diff) | |
download | git-bug-c4a4d457f7327083d530c2b70e2e41e04f1f13f6.tar.gz |
fix(850): normalize Windows line endings -> *nix (golden files)
Diffstat (limited to 'commands/comment_test.go')
-rw-r--r-- | commands/comment_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/comment_test.go b/commands/comment_test.go index 74cfee81..43062ed0 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), strings.ReplaceAll(comment.message, "\r", "")) + require.Equal(t, strings.ReplaceAll(string(exp), "\r", ""), strings.ReplaceAll(comment.message, "\r", "")) } } |