spec/net_http_server_spec.lua
author Matthew Wild <mwild1@gmail.com>
Tue, 18 Jun 2024 15:08:30 +0100
changeset 13500 3e6d5738ea09
parent 8690 ee01578c67cb
permissions -rw-r--r--
MUC: Don't default component admins to being room owners This change has various technical and social benefits. If ownership of a MUC is really needed, it can be gained using the 'Set affiliation' ad-hoc command or prosodyctl shell. Example client incompatibility with the old behaviour: - https://github.com/monal-im/Monal/issues/1085

describe("net.http.server", function ()
	package.loaded["net.server"] = {}
	local server = require "net.http.server";
	describe("events", function ()
		it("should work with util.helpers", function ()
			-- See #1044
			server.add_handler("GET host/foo/*", function () end, 0);
			server.add_handler("GET host/foo/bar", function () end, 0);
			local helpers = require "util.helpers";
			assert.is.string(helpers.show_events(server._events));
		end);
	end);
end);