Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelastic committed Dec 19, 2023
1 parent c8cc20e commit 36f70b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/linter/test_yaml_actionlint.vader
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ Execute(Problems should be parsed correctly for actionlint):
\ 'workflow_call_event.yaml:56:23: property "unknown_input" is not defined in object type {input7: bool; input0: any; input1: any; input2: string; input3: any; input4: any; input5: number; input6: number} [expression]',
\ ])

Execute(Command should always have -no-color and -oneline options):
Execute(Command should always have -no-color, -oneline and - options):
let g:ale_yaml_actionlint_options = ''

AssertEqual
\ '%e -no-color -oneline',
\ '%e -no-color -oneline - ',
\ ale_linters#yaml#actionlint#GetCommand(bufnr(''))

Execute(Options should be added to command):
let g:ale_yaml_actionlint_options = '-shellcheck= -pyflakes='

AssertEqual
\ '%e -shellcheck= -pyflakes= -no-color -oneline',
\ '%e -shellcheck= -pyflakes= -no-color -oneline - ',
\ ale_linters#yaml#actionlint#GetCommand(bufnr(''))

0 comments on commit 36f70b4

Please sign in to comment.