Skip to content

Commit f2ebf3a

Browse files
zepatrikaeneasr
authored andcommitted
fix: replace \r\n with \n
1 parent ed62b73 commit f2ebf3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clidoc/generate_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package clidoc
22

33
import (
4+
"bytes"
45
"io/fs"
56
"os"
67
"path/filepath"
@@ -56,6 +57,7 @@ func snapshotDir(t *testing.T, path ...string) (assertNoChange func(t *testing.T
5657
func snapshotFile(t *testing.T, path ...string) (assertNoChange func(t *testing.T)) {
5758
pre, err := os.ReadFile(filepath.Join(path...))
5859
require.NoError(t, err)
60+
pre = bytes.ReplaceAll(pre, []byte("\r\n"), []byte("\n"))
5961

6062
return func(t *testing.T) {
6163
post, err := os.ReadFile(filepath.Join(path...))

0 commit comments

Comments
 (0)