Late scripts require in tests

This commit is contained in:
Insality
2023-08-06 14:17:12 +03:00
parent 3219b280e7
commit 2d8d3cffbb
8 changed files with 67 additions and 26 deletions

View File

@@ -7,6 +7,7 @@ return function()
local druid = nil
local context = nil
describe("Blocker component", function()
before(function()
mock_gui = require("deftest.mock.gui")
@@ -18,6 +19,7 @@ return function()
mock_gui.mock()
mock_time.mock()
mock_time.set(60)
context = test_helper.get_context()
druid = druid_system.new(context)
end)