summaryrefslogtreecommitdiff
path: root/test/tclient
diff options
context:
space:
mode:
Diffstat (limited to 'test/tclient')
-rw-r--r--test/tclient/init.lua1
-rw-r--r--test/tclient/tests/build-meta.lua18
2 files changed, 19 insertions, 0 deletions
diff --git a/test/tclient/init.lua b/test/tclient/init.lua
index 2b470887..070cf337 100644
--- a/test/tclient/init.lua
+++ b/test/tclient/init.lua
@@ -8,3 +8,4 @@ require 'tclient.tests.resolve-completion'
require 'tclient.tests.performance-jass-common'
require 'tclient.tests.hover-pairs'
require 'tclient.tests.change-workspace-folder'
+require 'tclient.tests.build-meta'
diff --git a/test/tclient/tests/build-meta.lua b/test/tclient/tests/build-meta.lua
new file mode 100644
index 00000000..13f41a7a
--- /dev/null
+++ b/test/tclient/tests/build-meta.lua
@@ -0,0 +1,18 @@
+local lclient = require 'lclient'
+local util = require 'utility'
+local ws = require 'workspace'
+local json = require 'json'
+
+---@async
+lclient():start(function (client)
+ client:registerFakers()
+
+ client:initialize()
+
+ local text = util.loadFile((ROOT / 'test' / 'example' / 'meta.json'):string())
+ local meta = json.decode(text)
+
+ client:notify('$/api/report', meta)
+
+ ws.awaitReady()
+end)