www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 687f86af714f1289699030a14d6eb716a22bcf71
parent 94c44454759e3c047a53ca1ca077b2021865a9f9
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 30 Aug 2017 17:23:38 -0400

Allow parentID in importFileAttachment() test support function

The Zotero.Attachments functions only take parentItemID, but
createDataObject() takes parentID.

Diffstat:
Mtest/content/support.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/content/support.js b/test/content/support.js @@ -844,7 +844,8 @@ function importFileAttachment(filename, options = {}) { let file = getTestDataDirectory(); filename.split('/').forEach((part) => file.append(part)); let importOptions = { - file + file, + parentItemID: options.parentID }; Object.assign(importOptions, options); return Zotero.Attachments.importFromFile(importOptions);