add gs
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
return function()
|
||||
local CoreGui = game:GetService("CoreGui")
|
||||
local Modules = CoreGui.RobloxGui.Modules
|
||||
local LuaChat = Modules.LuaChat
|
||||
local ReceivedPlaceThumbnail = require(LuaChat.Actions.ReceivedPlaceThumbnail)
|
||||
local PlaceThumbnailsReducer = require(script.Parent.PlaceThumbnails)
|
||||
|
||||
describe("initial state", function()
|
||||
it("should return an initial table when passed nil", function()
|
||||
local state = PlaceThumbnailsReducer(nil, {})
|
||||
expect(state).to.be.a("table")
|
||||
end)
|
||||
end)
|
||||
|
||||
describe("ReceivedPlaceThumbnail", function()
|
||||
it("should add place thumbnail to the store", function()
|
||||
local state = PlaceThumbnailsReducer(nil, {})
|
||||
|
||||
local returnedThumbnail = ReceivedPlaceThumbnail("imageToken", "thumbnail")
|
||||
state = PlaceThumbnailsReducer(state, returnedThumbnail)
|
||||
|
||||
expect(state["imageToken"]).to.equal("thumbnail")
|
||||
end)
|
||||
end)
|
||||
end
|
||||
Reference in New Issue
Block a user