diff options
author | Gregory Anders <greg@gpanders.com> | 2021-11-27 12:47:03 -0700 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2021-11-27 12:47:03 -0700 |
commit | 6e30461cea4ff9e51088875f82b0c8c78d939fbd (patch) | |
tree | 32a09fea31ca98396f30b655c0c68deb71dce6ff /test/functional/lua/diagnostic_spec.lua | |
parent | d93f47dc8319a58ff537819978cb965c66b6ea01 (diff) | |
download | rneovim-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.lua | 4 |
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) |