
getGroup() can be used to access a default group library for general group tests. createGroup() can be used to create one for a particular test or set of tests.
16 lines
318 B
JavaScript
16 lines
318 B
JavaScript
describe("Zotero.Groups", function () {
|
|
describe("#get()", function () {
|
|
it("should retrieve a newly created group", function* () {
|
|
try {
|
|
var group = yield createGroup();
|
|
assert.equal(Zotero.Groups.get(group.id), group)
|
|
}
|
|
finally {
|
|
if (group) {
|
|
yield group.erase();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|