summaryrefslogtreecommitdiff
path: root/server/test/hover/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/hover/init.lua')
-rw-r--r--server/test/hover/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index a11dff45..8177713e 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -12,7 +12,8 @@ function TEST(script)
local ast = parser:ast(new_script)
local vm = matcher.vm(ast)
assert(vm)
- local result = matcher.hover(vm, pos)
+ local result, source = matcher.findResult(vm, pos)
+ local result = matcher.hover(vm, result, source)
assert(result)
expect = expect:gsub('^[\r\n]*(.-)[\r\n]*$', '%1'):gsub('\r\n', '\n')
result = result:gsub('```lua[\r\n]*', ''):gsub('[\r\n]*```', ''):gsub('^[\r\n]*(.-)[\r\n]*$', '%1'):gsub('\r\n', '\n')