aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/diagnostic_spec.lua
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2021-11-27 12:47:03 -0700
committerGregory Anders <greg@gpanders.com>2021-11-27 12:47:03 -0700
commit6e30461cea4ff9e51088875f82b0c8c78d939fbd (patch)
tree32a09fea31ca98396f30b655c0c68deb71dce6ff /test/functional/lua/diagnostic_spec.lua
parentd93f47dc8319a58ff537819978cb965c66b6ea01 (diff)
downloadrneovim-6e30461cea4ff9e51088875f82b0c8c78d939fbd.tar.gz
rneovim-6e30461cea4ff9e51088875f82b0c8c78d939fbd.tar.bz2
rneovim-6e30461cea4ff9e51088875f82b0c8c78d939fbd.zip
test(diagnostic): diagnostics passed to set() should be an array
Diffstat (limited to 'test/functional/lua/diagnostic_spec.lua')
-rw-r--r--test/functional/lua/diagnostic_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/lua/diagnostic_spec.lua b/test/functional/lua/diagnostic_spec.lua
index e1439bfdb4..ba2f6db5e0 100644
--- a/test/functional/lua/diagnostic_spec.lua
+++ b/test/functional/lua/diagnostic_spec.lua
@@ -357,7 +357,7 @@ describe('vim.diagnostic', function()
it("doesn't error after bwipeout on buffer", function()
exec_lua [[
- vim.diagnostic.set(diagnostic_ns, diagnostic_bufnr, { lnum = 0, end_lnum = 0, col = 0, end_col = 0 })
+ vim.diagnostic.set(diagnostic_ns, diagnostic_bufnr, {{ lnum = 0, end_lnum = 0, col = 0, end_col = 0 }})
vim.cmd("bwipeout! " .. diagnostic_bufnr)
vim.diagnostic.show(diagnostic_ns)
@@ -653,7 +653,7 @@ describe('vim.diagnostic', function()
it("doesn't error after bwipeout called on buffer", function()
exec_lua [[
- vim.diagnostic.set(diagnostic_ns, diagnostic_bufnr, { lnum = 0, end_lnum = 0, col = 0, end_col = 0 })
+ vim.diagnostic.set(diagnostic_ns, diagnostic_bufnr, {{ lnum = 0, end_lnum = 0, col = 0, end_col = 0 }})
vim.cmd("bwipeout! " .. diagnostic_bufnr)
vim.diagnostic.reset(diagnostic_ns)