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;