14 lines
461 B
Lua
14 lines
461 B
Lua
return function()
|
|
local Roact = require(game:GetService("CoreGui").RobloxGui.Modules.Common.Roact)
|
|
local RenderStep = require(script.Parent.RenderStep)
|
|
|
|
it("should create and destroy", function()
|
|
local element = Roact.createElement(RenderStep, {
|
|
name = "myRenderStep",
|
|
priority = Enum.RenderPriority.Input.Value,
|
|
callback = function() print("hello render step") end,
|
|
})
|
|
local instance = Roact.mount(element)
|
|
Roact.unmount(instance)
|
|
end)
|
|
end |