Update snapshot tests for new SingleFile markup

This commit is contained in:
Dan Stillman 2023-04-28 02:18:52 -04:00
parent 46d0ce3cbf
commit dbefdaac2c

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 style><!--\n Page saved with SingleFile \n url:/); assert.match(contents, /^<html><!--\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 style><!--\n Page saved with SingleFile \n url:/); assert.match(contents, /^<html><!--\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 () {