return function()local G=require(script.Parent.Parent.Client)describe("\067\111\110\116\114\111\108\108\101\114",function()describe("\067\114\101\097\116\101\067\111\110\116\114\111\108\108\101\114",function()it("\115\104\111\117\108\100 \098\101 \097 \116\097\098\108\101",function()local r=G:CreateController({Name="\084\101\115\116\067\111\110\116\114\111\108\108\101\114"});(expect(typeof(r)=="\116\097\098\108\101")).to.be.ok()end)it("\115\104\111\117\108\100 \116\104\114\111\119 \097\110 \101\114\114\111\114 \119\105\116\104 \110\111 \110\097\109\101",function()local r=pcall(function()G:CreateController({})end);(expect(not r)).to.be.ok()end)end)end)describe("\083\101\114\118\105\099\101",function()describe("\071\101\116\083\101\114\118\105\099\101",function()it("\115\104\111\117\108\100 \116\104\114\111\119 \097\110 \101\114\114\111\114 \119\105\116\104 \097\110 \105\110\118\097\108\105\100 \115\101\114\118\105\099\101",function()local r=pcall(function()G:GetService("\084\104\105\115\083\101\114\118\105\099\101\068\111\101\115\110\116\069\120\105\115\116")end);(expect(not r)).to.be.ok()end)end)end)end
return function ()
    local Client = require(script.Parent.Parent.Client)

    describe("Controller", function()
        describe("CreateController", function()
            it("should be a table", function()
                local Controller = Client:CreateController({
                    Name = "TestController"
                })
    
                expect(typeof(Controller) == "table").to.be.ok()
            end)
    
            it("should throw an error with no name", function()
                local success = pcall(function()
                    Client:CreateController({})
                end)
                expect(not success).to.be.ok()
            end)
        end)
    end)

    describe("Service", function()
        describe("GetService", function()
            it("should throw an error with an invalid service", function()
                local success = pcall(function()
                    Client:GetService("ThisServiceDoesntExist")
                end)

                expect(not success).to.be.ok()
            end)
        end)
    end)
end