Fix note editor tests

This commit is contained in:
Martynas Bagdonas 2021-01-13 14:01:44 +02:00 committed by Dan Stillman
parent 232ffba2ab
commit 5266734ac9
5 changed files with 22 additions and 10 deletions

View file

@ -20,7 +20,7 @@ describe("Note Editor", function () {
noteEditor = win.document.getElementById('zotero-note-editor');
}
return new Zotero.Promise((resolve, reject) => {
noteEditor.noteField.onInit(() => resolve(noteEditor));
noteEditor.onInit(() => resolve(noteEditor));
});
});