add gs
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
return function()
|
||||
local LuaChat = script.Parent.Parent
|
||||
local FriendCount = require(script.Parent.FriendCount)
|
||||
local SetFriendCount = require(LuaChat.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
|
||||
Reference in New Issue
Block a user