Add .allowsLinkedFiles property to Zotero.Library objects

This commit is contained in:
Dan Stillman 2018-03-31 03:52:17 -04:00
parent 20df18636d
commit bc141ce36b
4 changed files with 23 additions and 0 deletions

View file

@ -126,6 +126,17 @@ describe("Zotero.Library", function() {
});
});
describe("#allowsLinkedFiles", function () {
it("should return true for personal library", function () {
assert.isTrue(Zotero.Libraries.userLibrary.allowsLinkedFiles);
});
it("should return false for group libraries", async function () {
var group = await getGroup();
assert.isFalse(group.allowsLinkedFiles);
});
});
describe("#archived", function() {
it("should return archived status", function() {
let library = Zotero.Libraries.get(Zotero.Libraries.userLibraryID);