mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 02:17:52 +02:00
Update tests
This commit is contained in:
parent
fed6fec193
commit
026ec03803
@ -1,25 +1,26 @@
|
||||
return function()
|
||||
describe("Blocker component", function()
|
||||
local mock_gui = nil
|
||||
local mock_time = nil
|
||||
local mock_input = nil
|
||||
local test_helper = nil
|
||||
local druid_system = nil
|
||||
|
||||
local druid = nil
|
||||
local druid = nil ---@type druid.instance
|
||||
|
||||
describe("Blocker component", function()
|
||||
before(function()
|
||||
mock_gui = require("deftest.mock.gui")
|
||||
mock_gui.mock()
|
||||
|
||||
mock_time = require("deftest.mock.time")
|
||||
mock_input = require("test.helper.mock_input")
|
||||
test_helper = require("test.helper.test_helper")
|
||||
druid_system = require("druid.druid")
|
||||
|
||||
mock_gui.mock()
|
||||
mock_time.mock()
|
||||
mock_time.set(60)
|
||||
|
||||
druid = druid_system.new({})
|
||||
druid = druid_system.new(vmath.vector3())
|
||||
end)
|
||||
|
||||
after(function()
|
||||
|
@ -1,4 +1,5 @@
|
||||
return function()
|
||||
describe("Button Component", function()
|
||||
local mock_gui = nil
|
||||
local mock_time = nil
|
||||
local mock_input = nil
|
||||
@ -8,15 +9,15 @@ return function()
|
||||
local druid = nil
|
||||
local context = nil
|
||||
|
||||
describe("Button Component", function()
|
||||
before(function()
|
||||
mock_gui = require("deftest.mock.gui")
|
||||
mock_gui.mock()
|
||||
|
||||
mock_time = require("deftest.mock.time")
|
||||
mock_input = require("test.helper.mock_input")
|
||||
test_helper = require("test.helper.test_helper")
|
||||
druid_system = require("druid.druid")
|
||||
|
||||
mock_gui.mock()
|
||||
mock_time.mock()
|
||||
mock_time.set(60)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user