aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/functional/lua/diagnostic_spec.lua2
-rw-r--r--test/functional/treesitter/query_spec.lua5
2 files changed, 3 insertions, 4 deletions
diff --git a/test/functional/lua/diagnostic_spec.lua b/test/functional/lua/diagnostic_spec.lua
index e9636742d7..0b77291379 100644
--- a/test/functional/lua/diagnostic_spec.lua
+++ b/test/functional/lua/diagnostic_spec.lua
@@ -2667,7 +2667,7 @@ describe('vim.diagnostic', function()
it('respects legacy signs placed with :sign define or sign_define #26618', function()
-- Legacy signs for diagnostics were deprecated in 0.10 and will be removed in 0.12
- eq(0, n.fn.has('nvim-0.12'))
+ -- eq(0, n.fn.has('nvim-0.12'))
n.command('sign define DiagnosticSignError text= texthl= linehl=ErrorMsg numhl=ErrorMsg')
n.command('sign define DiagnosticSignWarn text= texthl= linehl=WarningMsg numhl=WarningMsg')
diff --git a/test/functional/treesitter/query_spec.lua b/test/functional/treesitter/query_spec.lua
index b9bf5bb6e8..d3c4864346 100644
--- a/test/functional/treesitter/query_spec.lua
+++ b/test/functional/treesitter/query_spec.lua
@@ -8,7 +8,6 @@ local insert = n.insert
local exec_lua = n.exec_lua
local pcall_err = t.pcall_err
local api = n.api
-local fn = n.fn
local function get_query_result(query_text)
local cquery = vim.treesitter.query.parse('c', query_text)
@@ -550,7 +549,7 @@ void ui_refresh(void)
end)
-- Remove this 'do' block in 0.12
- eq(0, fn.has('nvim-0.12'))
+ -- eq(0, n.fn.has('nvim-0.12'))
eq({ { 0, 4, 0, 8 } }, res)
end
@@ -683,7 +682,7 @@ void ui_refresh(void)
it('supports the old broken version of iter_matches #24738', function()
-- Delete this test in 0.12 when iter_matches is removed
- eq(0, fn.has('nvim-0.12'))
+ -- eq(0, n.fn.has('nvim-0.12'))
insert(test_text)
local res = exec_lua(function()