commit db2ddfd49321a5b7bec1a46c0fcf694819ec18ea parent 723b4d32e5eb5116d3b81f38eaab73870789e5a0 Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 18 Jan 2018 18:53:01 -0500 Fix Zotero.Fulltext.setItemContent() test Diffstat:
| M | test/tests/fulltextTest.js | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/test/tests/fulltextTest.js b/test/tests/fulltextTest.js @@ -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');