aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Shen <17462095+mxteries@users.noreply.github.com>2022-03-02 20:42:27 -0500
committerGitHub <noreply@github.com>2022-03-02 18:42:27 -0700
commit5d6006f9bfc2f1f064adbcfa974da6976e867450 (patch)
treed8591aedcdf6652e4b4d3e3f3223f817a56d7f21 /test
parent051a0514dc62f675a3c63761b9bef1721f7cf695 (diff)
downloadrneovim-5d6006f9bfc2f1f064adbcfa974da6976e867450.tar.gz
rneovim-5d6006f9bfc2f1f064adbcfa974da6976e867450.tar.bz2
rneovim-5d6006f9bfc2f1f064adbcfa974da6976e867450.zip
feat(diagnostic): add "code" to the diagnostic structure (#17510)
Diffstat (limited to 'test')
-rw-r--r--test/functional/plugin/lsp/diagnostic_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/plugin/lsp/diagnostic_spec.lua b/test/functional/plugin/lsp/diagnostic_spec.lua
index 1269a2350c..83d794b620 100644
--- a/test/functional/plugin/lsp/diagnostic_spec.lua
+++ b/test/functional/plugin/lsp/diagnostic_spec.lua
@@ -110,6 +110,7 @@ describe('vim.lsp.diagnostic', function()
}
]]
eq({code = 42, tags = {"foo", "bar"}, data = "Hello world"}, result[1].user_data.lsp)
+ eq(42, result[1].code)
eq(42, result[2].code)
eq({"foo", "bar"}, result[2].tags)
eq("Hello world", result[2].data)