mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Fix /connector/saveSnapshot test for Zotero.HTTP.download()
This commit is contained in:
parent
6add721e68
commit
8021ca0a0b
1 changed files with 2 additions and 2 deletions
|
|
@ -1353,8 +1353,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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue