return function()local A=require(script.Parent.onNextEvent)it("\115\104\111\117\108\100 \115\116\111\112 \108\105\115\116\101\110\105\110\103 \097\102\116\101\114 \116\104\101 \101\118\101\110\116 \102\105\114\101\115",function()local b=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")local O=0 A(b.Event,function()O=O+1 end)b:Fire()b:Fire();(expect(O)).to.equal(1)end)end
return function()
	local onNextEvent = require(script.Parent.onNextEvent)

	it("should stop listening after the event fires", function()
		local bindable = Instance.new("BindableEvent")
		local callCount = 0

		onNextEvent(bindable.Event, function()
			callCount = callCount + 1
		end)

		bindable:Fire()
		bindable:Fire()

		expect(callCount).to.equal(1)
	end)
end
