From 85b97f82e63a8c1862236aafa2fc4e4118a930ad Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 5 Mar 2025 07:18:12 -0500 Subject: [PATCH] Fix /connector/saveSnapshot test for `Zotero.HTTP.download()` --- test/tests/server_connectorTest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests/server_connectorTest.js b/test/tests/server_connectorTest.js index 21322617c0..5d4823f1f9 100644 --- a/test/tests/server_connectorTest.js +++ b/test/tests/server_connectorTest.js @@ -1354,8 +1354,8 @@ describe("Connector Server", function () { var origRequest = Zotero.HTTP.request.bind(Zotero.HTTP); var called = 0; var stub = sinon.stub(Zotero.HTTP, 'request').callsFake(function (method, url, options) { - // Forward saveSnapshot request - if (url.endsWith('saveSnapshot')) { + // Forward saveSnapshot and PDF requests + if (url.endsWith('saveSnapshot') || url.endsWith('test.pdf')) { return origRequest(...arguments); }