X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0ee596c5c5e11fc79598407eaf22f83d279f7e9e..5a4872f466ebd76ddd532bdf2798554421c53df4:/.vim/bundle/ale/test/handler/test_bicep_bicep_handler.vader diff --git a/.vim/bundle/ale/test/handler/test_bicep_bicep_handler.vader b/.vim/bundle/ale/test/handler/test_bicep_bicep_handler.vader new file mode 100644 index 00000000..82f02737 --- /dev/null +++ b/.vim/bundle/ale/test/handler/test_bicep_bicep_handler.vader @@ -0,0 +1,30 @@ +Before: + runtime ale_linters/bicep/bicep.vim + +After: + call ale#linter#Reset() + +Execute(The bicep handler should handle basic warnings): + AssertEqual + \ [ + \ { + \ 'filename': '/tmp/nvimhxqs5D/1/dns.bicep', + \ 'lnum': 7, + \ 'col': 10, + \ 'type': 'W', + \ 'code': 'no-unused-existing-resources', + \ 'text': 'Existing resource "asdasd" is declared but never used. [https://aka.ms/bicep/linter/no-unused-existing-resources]', + \ }, + \ { + \ 'filename': '/tmp/nvimhxqs5D/1/dns.bicep', + \ 'lnum': 106, + \ 'col': 6, + \ 'type': 'E', + \ 'code': 'BCP019', + \ 'text': 'Expected a new line character at this location.', + \ }, + \ ], + \ ale_linters#bicep#bicep#Handle(1, [ + \ '/tmp/nvimhxqs5D/1/dns.bicep(7,10) : Warning no-unused-existing-resources: Existing resource "asdasd" is declared but never used. [https://aka.ms/bicep/linter/no-unused-existing-resources]', + \ '/tmp/nvimhxqs5D/1/dns.bicep(106,6) : Error BCP019: Expected a new line character at this location.', + \ ])