summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/init.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index 051c288c..58885149 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -83,9 +83,11 @@ function TEST(script)
assert(result ~= nil)
result.enableCommon = nil
for _, item in ipairs(result) do
- local r = core.resolve(item.id)
- for k, v in pairs(r or {}) do
- item[k] = v
+ if item.id then
+ local r = core.resolve(item.id)
+ for k, v in pairs(r or {}) do
+ item[k] = v
+ end
end
for k in pairs(item) do
if not Cared[k] then