18 lines
544 B
Lua
18 lines
544 B
Lua
return function()
|
|
local CorePackages = game:GetService("CorePackages")
|
|
local FriendCount = require(CorePackages.AppTempCommon.LuaChat.Reducers.FriendCount)
|
|
local SetFriendCount = require(CorePackages.AppTempCommon.LuaApp.Actions.SetFriendCount)
|
|
|
|
it("should be zero by default", function()
|
|
local state = FriendCount(nil, {})
|
|
|
|
expect(state).to.equal(0)
|
|
end)
|
|
|
|
it("should respond to SetFriendCount", function()
|
|
local state = FriendCount(nil, {})
|
|
state = FriendCount(state, SetFriendCount(520))
|
|
|
|
expect(state).to.equal(520)
|
|
end)
|
|
end |