From ad216bcf97327800c48c9c433dcf5acf83ba821e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 3 Feb 2018 04:14:33 -0500 Subject: [PATCH] Allow `parentItemID` as a `createDataObject()` parameter in tests Not just `parentID` --- test/content/support.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/content/support.js b/test/content/support.js index 9ef2c6a848..4b10f44a28 100644 --- a/test/content/support.js +++ b/test/content/support.js @@ -411,6 +411,10 @@ function createUnsavedDataObject(objectType, params = {}) { switch (objectType) { case 'item': case 'feedItem': + if (params.parentItemID) { + params.parentID = params.parentItemID; + delete params.parentItemID; + } if (params.title !== undefined || params.setTitle) { obj.setField('title', params.title !== undefined ? params.title : Zotero.Utilities.randomString()); }