Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
andreynering committed Feb 27, 2025
1 parent c81d9e7 commit 2268b8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions exp/golden/golden.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"flag"
"os"
"path/filepath"
"runtime"
"strconv"
"strings"
"testing"
Expand Down Expand Up @@ -75,8 +74,8 @@ func escapeSeqs(in string) string {
// normalizeWindowsLineBreaks replaces all \r\n with \n.
// This is needed because Git for Windows checks out with \r\n by default.
func normalizeWindowsLineBreaks(str string) string {
if runtime.GOOS == "windows" {
return strings.ReplaceAll(str, "\r\n", "\n")
}
// if runtime.GOOS == "windows" {
// return strings.ReplaceAll(str, "\r\n", "\n")
// }
return str
}
2 changes: 2 additions & 0 deletions exp/teatest/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ require (
golang.org/x/sys v0.26.0 // indirect
golang.org/x/text v0.19.0 // indirect
)

replace github.com/charmbracelet/x/exp/golden => ../golden

0 comments on commit 2268b8d

Please sign in to comment.