Skip to content

Commit

Permalink
fix(tests): correct filepaths on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
qvalentin committed Jul 1, 2024
1 parent 93a4b99 commit 21152f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/handler/hover_main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
{
Expand All @@ -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,
},
{
Expand Down

0 comments on commit 21152f0

Please sign in to comment.