From 2c4608fe9efcfd5b01c74e837a98438455107b79 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 22 Sep 2023 14:08:16 -0400 Subject: [PATCH] update import validate test The diagnostics have been made more accurate, pointing to the problematic line rather than just the import block name. --- .../duplicate_import_targets/output.json | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/internal/command/testdata/validate-invalid/duplicate_import_targets/output.json b/internal/command/testdata/validate-invalid/duplicate_import_targets/output.json index bad183b0c9..091b5d8274 100644 --- a/internal/command/testdata/validate-invalid/duplicate_import_targets/output.json +++ b/internal/command/testdata/validate-invalid/duplicate_import_targets/output.json @@ -11,22 +11,22 @@ "range": { "filename": "testdata/validate-invalid/duplicate_import_targets/main.tf", "start": { - "line": 9, - "column": 1, - "byte": 85 + "line": 10, + "column": 8, + "byte": 101 }, "end": { - "line": 9, - "column": 7, - "byte": 91 + "line": 10, + "column": 24, + "byte": 117 } }, "snippet": { - "context": null, - "code": "import {", - "start_line": 9, - "highlight_start_offset": 0, - "highlight_end_offset": 6, + "context": "import", + "code": " to = aws_instance.web", + "start_line": 10, + "highlight_start_offset": 7, + "highlight_end_offset": 23, "values": [] } }