From 9ffb430207808efb4922e9fb3e4e2bdb24feb2df Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 20 Apr 2024 06:11:59 -0400 Subject: [PATCH] Return `baseURL` from `startHTTPServer()` test support function Since it should almost always just be `http://localhost:${port}/` --- test/content/support.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/content/support.js b/test/content/support.js index 7b8710c4e6..52a3d8087c 100644 --- a/test/content/support.js +++ b/test/content/support.js @@ -1112,5 +1112,6 @@ async function startHTTPServer(port = null) { await Zotero.Promise.delay(10); } } - return { httpd, port }; + var baseURL = `http://localhost:${port}/` + return { httpd, port, baseURL }; }