Ensure sinon-test sandbox stubbing methods are used for sandboxed tests
This commit is contained in:
parent
2f51c130cc
commit
2095f38ea5
1 changed files with 1 additions and 1 deletions
|
@ -803,7 +803,7 @@ 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) {
|
||||
var stub = this.stub(Zotero.HTTP, 'request').callsFake(function (method, url, options) {
|
||||
// Forward saveSnapshot request
|
||||
if (url.endsWith('saveSnapshot')) {
|
||||
return origRequest(...arguments);
|
||||
|
|
Loading…
Reference in a new issue