Deasyncify Zotero.Tags.getID()/getAsync(), and add Zotero.Tags.create()

This commit is contained in:
Dan Stillman 2016-04-21 11:07:16 -04:00
parent bf416e56c2
commit e2cbfbd0fe
8 changed files with 90 additions and 32 deletions

View file

@ -72,7 +72,7 @@ describe("Support Functions for Unit Testing", function() {
let tags = data.itemWithTags.tags;
for (let i=0; i<tags.length; i++) {
let tagID = yield Zotero.Tags.getID(tags[i].tag);
let tagID = Zotero.Tags.getID(tags[i].tag);
assert.ok(tagID, '"' + tags[i].tag + '" tag was inserted into the database');
assert.ok(zItem.hasTag(tags[i].tag), '"' + tags[i].tag + '" tag was assigned to item');
}