fz115: Update SingleFile tests to expect <html style>

Which I guess we get now instead of `<html>`?
This commit is contained in:
Dan Stillman 2023-12-05 02:46:42 -05:00
parent 32793b80ae
commit 03d414f3bd

View file

@ -1018,7 +1018,7 @@ describe("Connector Server", function () {
let path = OS.Path.join(attachmentDirectory, item.attachmentFilename); let path = OS.Path.join(attachmentDirectory, item.attachmentFilename);
assert.isTrue(await OS.File.exists(path)); assert.isTrue(await OS.File.exists(path));
let contents = await Zotero.File.getContentsAsync(path); let contents = await Zotero.File.getContentsAsync(path);
assert.match(contents, /^<html><!--\n Page saved with SingleFile \n url:/); assert.match(contents, /^<html style><!--\n Page saved with SingleFile \n url:/);
}); });
it("should override SingleFileZ from old connector in /saveItems", async function () { it("should override SingleFileZ from old connector in /saveItems", async function () {
@ -1127,7 +1127,7 @@ describe("Connector Server", function () {
let path = OS.Path.join(attachmentDirectory, item.attachmentFilename); let path = OS.Path.join(attachmentDirectory, item.attachmentFilename);
assert.isTrue(await OS.File.exists(path)); assert.isTrue(await OS.File.exists(path));
let contents = await Zotero.File.getContentsAsync(path); let contents = await Zotero.File.getContentsAsync(path);
assert.match(contents, /^<html><!--\n Page saved with SingleFile \n url:/); assert.match(contents, /^<html style><!--\n Page saved with SingleFile \n url:/);
}); });
it("should handle race condition with /saveItems", async function () { it("should handle race condition with /saveItems", async function () {