From c1dbd9824ceb03f2e378cc5b732cd11ba0e4c991 Mon Sep 17 00:00:00 2001 From: William Boman Date: Sun, 5 Mar 2023 02:33:57 +0100 Subject: feat(InstallContext): add strict_mode flag (#1055) Also add some more ctx.fs methods. --- tests/helpers/lua/test_helpers.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/helpers/lua/test_helpers.lua') diff --git a/tests/helpers/lua/test_helpers.lua b/tests/helpers/lua/test_helpers.lua index 17ec5ae5..08a0e91b 100644 --- a/tests/helpers/lua/test_helpers.lua +++ b/tests/helpers/lua/test_helpers.lua @@ -43,10 +43,10 @@ end ---@param opts PackageInstallOpts? function InstallContextGenerator(handle, opts) local context = InstallContext.new(handle, opts or {}) - context.spawn = setmetatable({}, { - __index = function(s, cmd) - s[cmd] = spy.new(mockx.just_runs()) - return s[cmd] + context.spawn = setmetatable({ strict_mode = false }, { + __index = function(self, cmd) + self[cmd] = spy.new(mockx.just_runs()) + return self[cmd] end, }) return context -- cgit v1.2.3-70-g09d2