Fix Zotero.Fulltext.setItemContent() test
This commit is contained in:
parent
723b4d32e5
commit
db2ddfd493
1 changed files with 10 additions and 0 deletions
|
@ -176,6 +176,16 @@ describe("Zotero.Fulltext", function () {
|
|||
})
|
||||
|
||||
describe("#setItemContent()", function () {
|
||||
before(() => {
|
||||
// Disable PDF indexing
|
||||
Zotero.Prefs.set('fulltext.pdfMaxPages', 0);
|
||||
});
|
||||
|
||||
after(() => {
|
||||
// Re-enable PDF indexing
|
||||
Zotero.Prefs.clear('fulltext.pdfMaxPages');
|
||||
});
|
||||
|
||||
it("should store data in .zotero-ft-unprocessed file", function* () {
|
||||
var item = yield importFileAttachment('test.pdf');
|
||||
|
||||
|
|
Loading…
Reference in a new issue