Fix trashing of descendant items when deleting a collection
Also allows 'collections' property to be passed to createDataObject()/createUnsavedDataObject() in tests.
This commit is contained in:
parent
a80f130997
commit
e873617890
9 changed files with 72 additions and 32 deletions
|
@ -35,7 +35,7 @@ describe("Zotero.DataObjectUtilities", function() {
|
|||
var changes = Zotero.DataObjectUtilities.diff(json1, json2);
|
||||
assert.lengthOf(changes, 0);
|
||||
|
||||
yield Zotero.Items.erase(id1, id2);
|
||||
yield Zotero.Items.erase([id1, id2]);
|
||||
})
|
||||
|
||||
it("should not show empty strings as different", function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue