Fix some test breakages related to .note/.getNote() changes

This commit is contained in:
Dan Stillman 2020-12-27 23:41:12 -05:00
parent 9997ece0d2
commit 0fe6e3d055
2 changed files with 19 additions and 10 deletions

View file

@ -227,7 +227,7 @@ describe("Zotero.DataObject", function() {
var item = new Zotero.Item('book');
var id = yield item.saveTx();
yield item.loadAllData();
assert.throws(item.getNote.bind(item), 'note can only be called on notes and attachments');
assert.throws(item.getNote.bind(item), 'getNote() can only be called on notes and attachments');
})
it("should load data on an attachment item", function* () {