summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/package_shell_test.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/package_shell_test.lua b/tests/package_shell_test.lua
index 9330c71..0f783ef 100644
--- a/tests/package_shell_test.lua
+++ b/tests/package_shell_test.lua
@@ -29,6 +29,7 @@ end
local sync_calls = 0
local sync_callbacks = {}
local environment = {
+ cx = { active = { finder = nil, current = {} } },
error = error,
pairs = pairs,
type = type,
@@ -51,6 +52,6 @@ assert(type(plugin.entry) == "function", "plugin must export an entry method")
local intent = plugin:entry({ args = { "directory" } })
assert(intent.mode == "directory", "entry shell must load with the bundled runtime")
-assert(sync_callbacks[1]() == 0, "commit shell must load with the bundled runtime")
+assert(sync_callbacks[1](nil, "directory", "query") == 0, "commit must guard absent finder state")
print("package shell checks passed")