diff --git a/internal/handler/hover_main_test.go b/internal/handler/hover_main_test.go index aee3d6a..531d838 100644 --- a/internal/handler/hover_main_test.go +++ b/internal/handler/hover_main_test.go @@ -38,7 +38,7 @@ func TestHoverMain(t *testing.T) { Line: 74, Character: 50, }, - expected: "### ../../testdata/example/values.yaml\nfirst:\n some: value\nsecond:\n some: value\n\n\n", + expected: fmt.Sprintf("### %s\n%s\n\n\n", filepath.Join("..", "..", "testdata", "example", "values.yaml"), "first:\n some: value\nsecond:\n some: value"), expectedError: nil, }, { @@ -47,7 +47,7 @@ func TestHoverMain(t *testing.T) { Line: 80, Character: 31, }, - expected: "### ../../testdata/example/values.yaml\nvalue\n\n", + expected: fmt.Sprintf("### %s\n%s\n\n", filepath.Join("..", "..", "testdata", "example", "values.yaml"), "value"), expectedError: nil, }, {