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:
Dan Stillman 2016-01-17 16:55:34 -05:00
parent a80f130997
commit e873617890
9 changed files with 72 additions and 32 deletions

View file

@ -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 () {