summaryrefslogtreecommitdiff
path: root/test/basic
diff options
context:
space:
mode:
authorDmytro Meleshko <dmytro.meleshko@gmail.com>2021-11-24 13:37:48 +0200
committerDmytro Meleshko <dmytro.meleshko@gmail.com>2021-11-24 13:37:48 +0200
commit41bda6cd48338a2df2b7baeeb53a987e4f803fbb (patch)
tree61761dd5f99809f54bfd38b06ad7cb2bdaef3141 /test/basic
parent1319f05cd4de50d7b01a297f39c4ad5a839ff7be (diff)
downloadlua-language-server-41bda6cd48338a2df2b7baeeb53a987e4f803fbb.zip
ensure that cachedRows of files are refreshed after didOpen
Diffstat (limited to 'test/basic')
-rw-r--r--test/basic/textmerger.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/basic/textmerger.lua b/test/basic/textmerger.lua
index a3a11f62..1ffd36f0 100644
--- a/test/basic/textmerger.lua
+++ b/test/basic/textmerger.lua
@@ -1,12 +1,9 @@
-local files = require 'files'
local tm = require 'text-merger'
local function TEST(source)
return function (expect)
return function (changes)
- files.removeAll()
- files.setText('', source)
- local text = tm('', changes)
+ local text = tm(source, nil, changes)
assert(text == expect)
end
end