summaryrefslogtreecommitdiff
path: root/server/test/crossfile/completion.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/crossfile/completion.lua')
-rw-r--r--server/test/crossfile/completion.lua20
1 files changed, 19 insertions, 1 deletions
diff --git a/server/test/crossfile/completion.lua b/server/test/crossfile/completion.lua
index d98de0cc..37f1f5d7 100644
--- a/server/test/crossfile/completion.lua
+++ b/server/test/crossfile/completion.lua
@@ -1,4 +1,4 @@
-local service = require 'service'
+local service = require 'server'
local workspace = require 'workspace'
local fs = require 'bee.filesystem'
local matcher = require 'matcher'
@@ -129,3 +129,21 @@ TEST {
},
}
}
+
+TEST {
+ {
+ path = 'abc.lua',
+ content = '',
+ },
+ {
+ path = 'test.lua',
+ content = 'require "A@"',
+ main = true,
+ },
+ completion = {
+ {
+ label = 'abc',
+ kind = CompletionItemKind.Module,
+ },
+ }
+}