return function()local z=require(script.Parent.Parent.generic.new)local Y=require(script.Parent.loadAccessories)local Z=z({ClassName="\077\111\100\101\108"},{Humanoid=z({ClassName="\072\117\109\097\110\111\105\100";RigType=Enum.HumanoidRigType.R15});HumanoidRootPart=Instance.new("\080\097\114\116")})it("\115\104\111\117\108\100 \108\111\097\100 \097\108\108 \116\104\101 \103\105\118\101\110 \097\099\099\101\115\115\111\114\105\101\115 \111\110\116\111 \116\104\101 \099\104\097\114\097\099\116\101\114",function()local z=Z:Clone();(expect(#z:GetChildren())).to.equal(2)local a=Instance.new("\065\099\099\101\115\115\111\114\121")a.Name="\065\099\099\101\115\115\111\114\121\049"local U=Instance.new("\065\099\099\101\115\115\111\114\121")U.Name="\065\099\099\101\115\115\111\114\121\050"Y(z.Humanoid,{a,U});(expect(#z:GetChildren())).to.equal(4);(expect(z.Accessory1)).to.be.ok();(expect(z.Accessory2)).to.be.ok()end)end
return function()
	local new = require(script.Parent.Parent.generic.new)
	local loadAccessories = require(script.Parent.loadAccessories)

	local MOCK_CHARACTER = new({
		ClassName = "Model"
	}, {
		Humanoid = new({
			ClassName = "Humanoid",
			RigType = Enum.HumanoidRigType.R15, -- Suppresses a warning about scaling
		}),
		HumanoidRootPart = Instance.new("Part")
	})

	it("should load all the given accessories onto the character", function()
		local character = MOCK_CHARACTER:Clone()

		expect(#character:GetChildren()).to.equal(2)

		local accessory1 = Instance.new("Accessory")
		accessory1.Name = "Accessory1"

		local accessory2 = Instance.new("Accessory")
		accessory2.Name = "Accessory2"

		loadAccessories(character.Humanoid, { accessory1, accessory2 })

		expect(#character:GetChildren()).to.equal(4)
		expect(character.Accessory1).to.be.ok()
		expect(character.Accessory2).to.be.ok()
	end)
end
