From dc52f55dd14bfaa5bd756b6ea8aa305c9a93283b Mon Sep 17 00:00:00 2001 From: qvalentin Date: Sat, 29 Jun 2024 18:40:56 +0200 Subject: [PATCH] feat(definition): fix tests for variable defintion --- internal/handler/definition_test.go | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/internal/handler/definition_test.go b/internal/handler/definition_test.go index 42cf596..388c7a3 100644 --- a/internal/handler/definition_test.go +++ b/internal/handler/definition_test.go @@ -103,11 +103,8 @@ func TestDefinitionVariable(t *testing.T) { { URI: testDocumentTemplateURI, Range: lsp.Range{ - Start: lsp.Position{Line: 1, Character: 22}, - End: lsp.Position{ - Line: 14, - Character: 0, - }, + Start: lsp.Position{Line: 1, Character: 3}, + End: lsp.Position{Line: 1, Character: 22}, }, }, }, nil) @@ -128,10 +125,8 @@ func TestDefinitionRange(t *testing.T) { { URI: testDocumentTemplateURI, Range: lsp.Range{ - Start: lsp.Position{ - Line: 7, - Character: 17, - }, + Start: lsp.Position{Line: 7, Character: 17}, + End: lsp.Position{Line: 7, Character: 37}, }, }, }, nil)