local E=(require(game.ReplicatedStorage.Tester)).expect local x=require(game.ReplicatedStorage.Packages.delvergreatFolder.delvers.Delver)return{["\083\104\111\117\108\100 \101\114\114\111\114 \119\104\101\110 \115\116\111\114\105\110\103 \097 \112\114\105\118\097\116\101 \109\117\116\097\098\108\101 \100\097\116\097"]=function()(E(function()x.AddRunner({Name="\115\116\114\105\110\103";Sync=true,key=0})end)).to.throw()end,["\083\104\111\117\108\100 \110\111\116 \101\114\114\111\114 \119\104\101\110 \115\116\111\114\105\110\103 \097 \112\117\098\108\105\099 \107\101\121 \119\105\116\104 \097\108\108\111\119\101\100 \100\097\116\097 \116\121\112\101"]=function()(E(function()x.AddRunner({Name="\115\116\114\105\110\103";Sync=true;pub=function() end})x.AddRunner({Name="\115\116\114\105\110\103";Sync=true,pub={}})x.AddRunner({Name="\115\116\114\105\110\103",Sync=true,pub=Instance.new("\080\097\114\116")})end)).to.never.throw()end}
local expect = require(game.ReplicatedStorage.Tester).expect
local Delver = require(game.ReplicatedStorage.Packages.delvergreatFolder.delvers.Delver)

return {
    ["Should error when storing a private mutable data"] = function()
        expect(function()
            Delver.AddRunner({
                Name = "string",
                Sync = true,

                key = 0
            })
        end).to.throw()
    end,
    ["Should not error when storing a public key with allowed data type"] = function()
        expect(function()
            Delver.AddRunner({
                Name = "string",
                Sync = true,

                pub = function()
                end
            })

            Delver.AddRunner({
                Name = "string",
                Sync = true,

                pub = {}
            })

            Delver.AddRunner({
                Name = "string",
                Sync = true,

                pub = Instance.new("Part")
            })
        end).to.never.throw()
    end
}