Don't include items in My Publications in Unfiled Items
This commit is contained in:
parent
2160b1cb87
commit
de7b56b8a1
3 changed files with 20 additions and 2 deletions
|
@ -296,6 +296,20 @@ describe("Zotero.Search", function() {
|
|||
assert.notInclude(matches, item.id);
|
||||
});
|
||||
});
|
||||
|
||||
describe("unfiled", function () {
|
||||
it("shouldn't include items in My Publications", function* () {
|
||||
var item1 = yield createDataObject('item');
|
||||
var item2 = yield createDataObject('item', { inPublications: true });
|
||||
|
||||
var s = new Zotero.Search;
|
||||
s.libraryID = Zotero.Libraries.userLibraryID;
|
||||
s.addCondition('unfiled', 'true');
|
||||
var matches = yield s.search();
|
||||
assert.include(matches, item1.id);
|
||||
assert.notInclude(matches, item2.id);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue