SyntaxGameServer/RCCService2018/content/LuaPackages/PurchasePrompt/Components/Presentation/ConfirmButton.spec.lua

21 lines
579 B
Lua

return function()
local CorePackages = game:GetService("CorePackages")
local Roact = require(CorePackages.Roact)
local UnitTestContainer = require(script.Parent.Parent.Parent.Test.UnitTestContainer)
local ConfirmButton = require(script.Parent.ConfirmButton)
it("should create and destroy without errors", function()
local element = Roact.createElement(UnitTestContainer, nil, {
Roact.createElement(ConfirmButton, {
stringKey = "testing123",
onClick = function()
end,
})
})
local instance = Roact.mount(element)
Roact.unmount(instance)
end)
end