summaryrefslogtreecommitdiff
path: root/test/tclient/tests
diff options
context:
space:
mode:
Diffstat (limited to 'test/tclient/tests')
-rw-r--r--test/tclient/tests/build-meta.lua18
1 files changed, 18 insertions, 0 deletions
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)