Deasyncify Zotero.Tags.getID()/getAsync(), and add Zotero.Tags.create()
This commit is contained in:
parent
bf416e56c2
commit
e2cbfbd0fe
8 changed files with 90 additions and 32 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue