Fix Zotero.Fulltext.setItemContent() test

This commit is contained in:
Dan Stillman 2018-01-18 18:53:01 -05:00
parent 723b4d32e5
commit db2ddfd493

View file

@ -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');