Skip to content

Commit

Permalink
Fixed and updated the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
axhav committed Dec 18, 2024
1 parent 103f4ff commit f0ea7aa
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions test/handler/test_yq_handler.vader
Original file line number Diff line number Diff line change
Expand Up @@ -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'
\ ])

0 comments on commit f0ea7aa

Please sign in to comment.