Skip to content

Commit

Permalink
pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Dec 13, 2024
1 parent bf12a8b commit f564289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/hover/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function TEST(script)
return function (expect)
local newScript, catched = catch(script, '?')
files.setText(TESTURI, newScript)
local hover = core.byUri(TESTURI, catched['?'][1][1])
local hover = core.byUri(TESTURI, catched['?'][1][1], 1)
assert(hover)
expect = expect:gsub('^[\r\n]*(.-)[\r\n]*$', '%1'):gsub('\r\n', '\n')
local label = hover:string():gsub('\r\n', '\n'):match('```lua[\r\n]*(.-)[\r\n]*```')
Expand Down

0 comments on commit f564289

Please sign in to comment.