From 41907975b01fc7ff8a200d2d514f1f2789448fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Tue, 26 Jul 2022 10:53:05 +0300 Subject: [PATCH] Adjust integration function comments and test dummy signature --- chrome/content/zotero/xpcom/integration.js | 2 +- test/tests/integrationTest.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 358d114a5b..e86201c14e 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -673,7 +673,7 @@ Zotero.Integration.Interface.prototype.addEditCitation = async function (docFiel }; /** - * Edits the citation at the cursor position if one exists, or else adds a new one. + * Adds a note to the current document. * @return {Promise} */ Zotero.Integration.Interface.prototype.addNote = async function () { diff --git a/test/tests/integrationTest.js b/test/tests/integrationTest.js index bae0be58bd..832043c86c 100644 --- a/test/tests/integrationTest.js +++ b/test/tests/integrationTest.js @@ -112,10 +112,10 @@ describe("Zotero.Integration", function () { * @param {String[]} codes * @param {String[]} placeholderIDs - the order of placeholders to be replaced * @param {Number} noteType - controls whether citations should be in-text or in footnotes/endnotes - * @param {Number} fieldType + * @param {String} fieldType * @return {Field[]} */ - convertPlaceholdersToFields: function (codes, noteType, fieldType) { + convertPlaceholdersToFields: function (codes, placeholderIDs, noteType, fieldType) { return codes.map(code => { let field = new DocumentPluginDummy.Field(this); field.code = code;