Clear annotation change state after save

This commit is contained in:
Dan Stillman 2021-01-26 02:42:51 -05:00
parent 98f9a99126
commit 4a4a54da7b
3 changed files with 12 additions and 2 deletions

View file

@ -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);
});
});
})