Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

test(hooks): compare the Claude settings golden file without CRLF

shukieshah3f0e71ffc8b5
diff --git a/cli/beacon/internal/endpoint/hooks/claude_extension_test.go b/cli/beacon/internal/endpoint/hooks/claude_extension_test.go
index 190e1c1b..f0d0f19b 100644
--- a/cli/beacon/internal/endpoint/hooks/claude_extension_test.go
+++ b/cli/beacon/internal/endpoint/hooks/claude_extension_test.go
@@ -27,6 +27,8 @@ func TestInstallClaudeSettingsUnchangedWithoutExtensions(t *testing.T) {
if err != nil {
t.Fatal(err)
}
+ // A Windows checkout turns the golden file's line endings into CRLF; Beacon writes LF.
+ want = bytes.ReplaceAll(want, []byte("\r\n"), []byte("\n"))
if !bytes.Equal(got, want) {
t.Fatalf("settings changed without extensions:\ngot:\n%s\nwant:\n%s", got, want)
}