This commit is contained in:
lx
2026-07-06 14:01:11 -04:00
commit c4f97d729d
16468 changed files with 935321 additions and 0 deletions
@@ -0,0 +1,30 @@
return function()
local StoreProvider = require(script.Parent.StoreProvider)
local Roact = require(script.Parent.Parent.Roact)
local Rodux = require(script.Parent.Parent.Rodux)
it("should be instantiable as a component", function()
local store = Rodux.Store.new(function()
return 0
end)
local element = Roact.createElement(StoreProvider, {
store = store
})
expect(element).to.be.ok()
local handle = Roact.mount(element, nil, "StoreProvider-test")
Roact.unmount(handle)
store:destruct()
end)
it("should expect a 'store' prop", function()
local element = Roact.createElement(StoreProvider)
expect(function()
Roact.mount(element)
end).to.throw()
end)
end