Fix test failure calling item.toResponseJSON() with no library set

After #4270
This commit is contained in:
Dan Stillman 2024-06-12 05:43:48 -04:00
parent 3aaf3432da
commit 17539404b2

View file

@ -1177,6 +1177,7 @@ describe("Zotero.Sync.Data.Engine", function () {
// Create an attachment response with storage metadata
var item = new Zotero.Item('attachment');
item.libraryID = Zotero.Libraries.userLibraryID;
item.attachmentLinkMode = 'imported_file';
item.attachmentFilename = 'test.txt';
item.attachmentContentType = 'text/plain';