mirror of
https://github.com/zotero/zotero.git
synced 2026-09-07 08:26:14 +00:00
Fix /connector/saveSnapshot test for Zotero.HTTP.download()
This commit is contained in:
parent
64b444752a
commit
85b97f82e6
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue