Adjust integration function comments and test dummy signature
This commit is contained in:
parent
dc0b2ceb8b
commit
41907975b0
2 changed files with 3 additions and 3 deletions
|
@ -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 () {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue