fz115: Update SingleFile tests to expect <html style>
Which I guess we get now instead of `<html>`?
This commit is contained in:
parent
32793b80ae
commit
03d414f3bd
1 changed files with 2 additions and 2 deletions
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in a new issue