Skip to content

Commit

Permalink
Added test vader file for yq
Browse files Browse the repository at this point in the history
  • Loading branch information
axhav committed Dec 18, 2024
1 parent 4e59a9b commit 103f4ff
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions test/handler/test_yq_handler.vader
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Before:
runtime ale_linters/yaml/yq.vim

After:
call ale#linter#Reset()

Execute (Should parse error correctly):
AssertEqual
\ [
\ {
\ 'lnum': 1,
\ 'col': 9,
\ 'text': 'Expected another array element',
\ }
\ ],
\ ale_linters#yaml#yq#Handle(0, [
\ 'parse error: Expected another array element at line 1, column 9'
\ ])

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 103f4ff

Please sign in to comment.