Use startHTTPServer()
in FeedReader test
This commit is contained in:
parent
9ffb430207
commit
704d90cd83
1 changed files with 4 additions and 6 deletions
|
@ -254,13 +254,11 @@ describe("Zotero.FeedReader", function () {
|
|||
|
||||
describe("Legacy text encodings", function () {
|
||||
var httpd;
|
||||
var port = 16213;
|
||||
var baseURL = `http://127.0.0.1:${port}/`;
|
||||
var port;
|
||||
var baseURL;
|
||||
|
||||
before(function () {
|
||||
Cu.import("resource://zotero-unit/httpd.js");
|
||||
httpd = new HttpServer();
|
||||
httpd.start(port);
|
||||
before(async function () {
|
||||
({ httpd, port, baseURL } = await startHTTPServer());
|
||||
|
||||
httpd._handler._mimeMappings.rss = "text/xml; charset=ISO-8859-1";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue