add gs
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
return function()
|
||||
local LoadingBar = require(script.Parent.LoadingBar)
|
||||
|
||||
local CorePackages = game:GetService("CorePackages")
|
||||
|
||||
local Roact = require(CorePackages.Roact)
|
||||
|
||||
it("should create and destroy without errors", function()
|
||||
local element = Roact.createElement(LoadingBar, {
|
||||
Position = UDim2.new(0.5, 0, 0.5, 5),
|
||||
AnchorPoint = Vector2.new(0.5, 0.5),
|
||||
})
|
||||
|
||||
local instance = Roact.mount(element)
|
||||
Roact.unmount(instance)
|
||||
end)
|
||||
end
|
||||
Reference in New Issue
Block a user