test(api): update tests to new error messages

This commit is contained in:
bfredl
2023-08-02 13:00:13 +02:00
parent 6c0812d92e
commit 0b351c3740
4 changed files with 18 additions and 19 deletions

View File

@@ -1511,7 +1511,7 @@ describe('lua stdlib', function()
eq(true, funcs.luaeval "vim.bo[BUF].modifiable")
matches("Unknown option 'nosuchopt'$",
pcall_err(exec_lua, 'return vim.bo.nosuchopt'))
matches("Expected lua string$",
matches("Expected Lua string$",
pcall_err(exec_lua, 'return vim.bo[0][0].autoread'))
matches("Invalid buffer id: %-1$",
pcall_err(exec_lua, 'return vim.bo[-1].filetype'))