Fix saving to My Library if Zotero pane hasn't been opened

This commit is contained in:
Dan Stillman 2016-04-09 18:34:54 -04:00
parent 9c53fe893c
commit 23e01fcefd
5 changed files with 84 additions and 36 deletions

View file

@ -171,7 +171,7 @@ describe("Zotero.Attachments", function() {
assert.equal(attachment.getField('url'), "file://" + uri);
// Check indexing
var matches = yield Zotero.Fulltext.findTextInItems([attachment.id], 'works');
var matches = yield Zotero.Fulltext.findTextInItems([attachment.id], 'share your research');
assert.lengthOf(matches, 1);
assert.propertyVal(matches[0], 'id', attachment.id);
})