return function()local q=require(script.Parent.createRegion)local O=require(script.Parent.Region)local e local N={Instance.new("\080\097\114\116")}beforeEach(function()local O=Instance.new("\080\097\114\116")e=q(O,N)end)it("\114\101\116\117\114\110\115 \097 \082\101\103\105\111\110 \105\110\115\116\097\110\099\101",function()(expect(O.is(e))).to.equal(true)end)it("\115\101\116\115 \116\104\101 \119\104\105\116\101\108\105\115\116",function()(expect(e._whitelist)).to.equal(N)end)it("\097\117\116\111\109\097\116\105\099\097\108\108\121 \108\105\115\116\101\110 \102\111\114 \116\114\105\103\103\101\114\115",function()(expect(typeof(e._heartbeat))).to.equal("\082\066\088\083\099\114\105\112\116\067\111\110\110\101\099\116\105\111\110")end)end
return function()
	local createRegion = require(script.Parent.createRegion)
	local Region = require(script.Parent.Region)

	local region
	local whitelist = {
		Instance.new("Part"),
	}

	beforeEach(function()
		local regionInstance = Instance.new("Part")
		region = createRegion(regionInstance, whitelist)
	end)

	it("returns a Region instance", function()
		expect(Region.is(region)).to.equal(true)
	end)

	it("sets the whitelist", function()
		expect(region._whitelist).to.equal(whitelist)
	end)

	it("automatically listen for triggers", function()
		expect(typeof(region._heartbeat)).to.equal("RBXScriptConnection")
	end)
end
