From 21152f0ff1f27867c95c6125c71956bfd0e72253 Mon Sep 17 00:00:00 2001 From: qvalentin Date: Mon, 1 Jul 2024 14:53:59 +0200 Subject: [PATCH] fix(tests): correct filepaths on windows --- internal/handler/hover_main_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }, {