summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/api
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-03-17 17:02:15 -0400
committerGitHub <noreply@github.com>2026-03-17 17:02:15 -0400
commit02ce4465103addbe5839e96d4efc6aeca8c8a1e5 (patch)
tree84ec17c224b3fac70119fbb855be354e085ee183 /test/functional/api
parent0da9827673329f48c7c53040e305bcaecfca0b7e (diff)
docs: api, lsp, messages, intro #38327
Diffstat (limited to 'test/functional/api')
-rw-r--r--test/functional/api/autocmd_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/api/autocmd_spec.lua b/test/functional/api/autocmd_spec.lua
index 2324b9ffea..1d513f4213 100644
--- a/test/functional/api/autocmd_spec.lua
+++ b/test/functional/api/autocmd_spec.lua
@@ -17,7 +17,7 @@ describe('autocmd api', function()
describe('nvim_create_autocmd', function()
it('validation', function()
eq(
- "Cannot use both 'callback' and 'command'",
+ "Conflict: 'callback' not allowed with 'command'",
pcall_err(api.nvim_create_autocmd, 'BufReadPost', {
pattern = '*.py,*.pyi',
command = "echo 'Should Have Errored",
@@ -25,7 +25,7 @@ describe('autocmd api', function()
})
)
eq(
- "Cannot use both 'pattern' and 'buffer' for the same autocmd",
+ "Conflict: 'pattern' not allowed with 'buffer'",
pcall_err(api.nvim_create_autocmd, 'FileType', {
command = 'let g:called = g:called + 1',
buffer = 0,
@@ -1534,7 +1534,7 @@ describe('autocmd api', function()
describe('nvim_clear_autocmds', function()
it('validation', function()
eq(
- "Cannot use both 'pattern' and 'buffer'",
+ "Conflict: 'pattern' not allowed with 'buffer'",
pcall_err(api.nvim_clear_autocmds, {
pattern = '*',
buffer = 42,