From 2268b8d8f834d175c9c1caf2652219fcf7047025 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 27 Feb 2025 17:13:47 -0300 Subject: [PATCH] test --- exp/golden/golden.go | 7 +++---- exp/teatest/go.mod | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/exp/golden/golden.go b/exp/golden/golden.go index 6c84c908..5b6e593c 100644 --- a/exp/golden/golden.go +++ b/exp/golden/golden.go @@ -4,7 +4,6 @@ import ( "flag" "os" "path/filepath" - "runtime" "strconv" "strings" "testing" @@ -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 } diff --git a/exp/teatest/go.mod b/exp/teatest/go.mod index 4fa11bd7..597689d1 100644 --- a/exp/teatest/go.mod +++ b/exp/teatest/go.mod @@ -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