summaryrefslogtreecommitdiff
path: root/test/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'test/plugins')
-rw-r--r--test/plugins/node/test.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/plugins/node/test.lua b/test/plugins/node/test.lua
index 15e4d16c..9b69935f 100644
--- a/test/plugins/node/test.lua
+++ b/test/plugins/node/test.lua
@@ -30,10 +30,10 @@ local function TestPlugin(script)
---@field b string
]]
---@param checker fun(state:parser.state)
- return function (plugin, checker)
+ return function (interfaces, checker)
files.open(TESTURI)
files.setText(TESTURI, prefix .. script, true)
- scope.getScope(TESTURI):set('pluginInterfaces', plugin)
+ scope.getScope(TESTURI):set('pluginInterfaces', interfaces)
local state = files.getState(TESTURI)
assert(state)
checker(state)
@@ -45,7 +45,7 @@ TestPlugin [[
local function t(a)
a.components:test()
end
-]](myplugin, function (state)
+]]({ myplugin }, function (state)
guide.eachSourceType(state.ast, 'local', function (src)
if guide.getKeyName(src) == 'a' then
local node = vm.compileNode(src)