Fix test failure calling item.toResponseJSON() with no library set
After #4270
This commit is contained in:
parent
3aaf3432da
commit
17539404b2
1 changed files with 1 additions and 0 deletions
|
@ -1177,6 +1177,7 @@ describe("Zotero.Sync.Data.Engine", function () {
|
||||||
|
|
||||||
// Create an attachment response with storage metadata
|
// Create an attachment response with storage metadata
|
||||||
var item = new Zotero.Item('attachment');
|
var item = new Zotero.Item('attachment');
|
||||||
|
item.libraryID = Zotero.Libraries.userLibraryID;
|
||||||
item.attachmentLinkMode = 'imported_file';
|
item.attachmentLinkMode = 'imported_file';
|
||||||
item.attachmentFilename = 'test.txt';
|
item.attachmentFilename = 'test.txt';
|
||||||
item.attachmentContentType = 'text/plain';
|
item.attachmentContentType = 'text/plain';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue