test: failing "treesitter.get_parser() returns nil for >= 0.12"

This commit is contained in:
Justin M. Keyes
2026-03-29 18:50:37 +02:00
parent ce31b1faac
commit 44d1f82fbf

View File

@@ -12,7 +12,7 @@ describe('deprecated lua code', function()
it('returns nil for versions >= 0.12', function()
local result = exec_lua(function()
if vim.version.ge(vim.version(), '0.12') then
return vim.treesitter.get_parser(0, 'borklang')
return (vim.treesitter.get_parser(0, 'borklang'))
end
return nil
end)