22 lines
564 B
Lua
22 lines
564 B
Lua
return function()
|
|
local CorePackages = game:GetService("CorePackages")
|
|
local Roact = require(CorePackages.Roact)
|
|
|
|
local UnitTestContainer = require(script.Parent.Parent.Parent.Test.UnitTestContainer)
|
|
|
|
local Price = require(script.Parent.Price)
|
|
|
|
Price = Price.getUnconnected()
|
|
|
|
it("should create and destroy without errors", function()
|
|
local element = Roact.createElement(UnitTestContainer, nil, {
|
|
Roact.createElement(Price, {
|
|
layoutOrder = 1,
|
|
imageUrl = "",
|
|
})
|
|
})
|
|
|
|
local instance = Roact.mount(element)
|
|
Roact.unmount(instance)
|
|
end)
|
|
end |