Clear annotation change state after save
This commit is contained in:
parent
98f9a99126
commit
4a4a54da7b
3 changed files with 12 additions and 2 deletions
|
@ -300,8 +300,8 @@ describe("Zotero.Annotations", function() {
|
|||
json.pageLabel = '';
|
||||
await Zotero.Annotations.saveFromJSON(attachment, json);
|
||||
|
||||
assert.equal(annotation.annotationComment, '');
|
||||
assert.equal(annotation.annotationPageLabel, '');
|
||||
assert.isNull(annotation.annotationComment);
|
||||
assert.isNull(annotation.annotationPageLabel);
|
||||
});
|
||||
});
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue