Don't orphan embedded-image attachments in schema integrity check!

This commit is contained in:
Dan Stillman 2021-02-19 05:19:51 -05:00
parent d0bdc45b9f
commit 8b57d0000b
2 changed files with 28 additions and 6 deletions

View file

@ -296,5 +296,11 @@ describe("Zotero.Schema", function() {
await assert.isTrue(await Zotero.Schema.integrityCheck(true));
await assert.isTrue(await Zotero.Schema.integrityCheck());
});
it("should allow embedded-image attachments under notes", async function () {
var item = await createDataObject('item', { itemType: 'note' });
await createEmbeddedImage(item);
await assert.isTrue(await Zotero.Schema.integrityCheck());
});
})
})