From f0ea7aaa8ac5fff2a72028b25b7960251fee356e Mon Sep 17 00:00:00 2001 From: William Axhav Bratt Date: Wed, 18 Dec 2024 23:24:28 +0100 Subject: [PATCH] Fixed and updated the test case --- test/handler/test_yq_handler.vader | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/test/handler/test_yq_handler.vader b/test/handler/test_yq_handler.vader index 55fae7912f..861bf9e401 100644 --- a/test/handler/test_yq_handler.vader +++ b/test/handler/test_yq_handler.vader @@ -8,23 +8,12 @@ Execute (Should parse error correctly): AssertEqual \ [ \ { - \ 'lnum': 1, - \ 'col': 9, - \ 'text': 'Expected another array element', + \ 'lnum': 2, + \ 'text': "did not find expected ',' or ']'", \ } \ ], - \ ale_linters#yaml#yq#Handle(0, [ - \ 'parse error: Expected another array element at line 1, column 9' + \ ale_linters#yaml#yq#Handle(bufnr(''), [ + \ "Error: bad file '-': yaml: line 2: did not find expected ',' or ']'" \ ]) - AssertEqual - \ [ - \ { - \ 'lnum': 1, - \ 'col': 9, - \ 'text': 'Expected another array element', - \ } - \ ], - \ ale_linters#yaml#yq#Handle(0, [ - \ 'yq: parse error: Expected another array element at line 1, column 9' - \ ]) +