From 330f74170bbac71946e5fb2cf152b2643bd5dd65 Mon Sep 17 00:00:00 2001 From: Mikhail Losev Date: Mon, 30 May 2016 16:50:56 +0300 Subject: [PATCH] FETCH_SEND_EVENT should expose overriden fetch promise (#607) --- package.json | 2 +- src/client/sandbox/fetch.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5660307d3..ac20f0341 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "testcafe-hammerhead", "description": "A powerful web-proxy used as a core for the TestCafe testing framework (https://github.com/DevExpress/testcafe).", - "version": "9.0.1", + "version": "9.0.2", "homepage": "https://github.com/DevExpress/testcafe-hammerhead", "bugs": { "url": "https://github.com/DevExpress/testcafe-hammerhead/issues" diff --git a/src/client/sandbox/fetch.js b/src/client/sandbox/fetch.js index b2cc33f8a..a49e40c98 100644 --- a/src/client/sandbox/fetch.js +++ b/src/client/sandbox/fetch.js @@ -130,9 +130,8 @@ export default class FetchSandbox extends SandboxBase { var fetchPromise = nativeMethods.fetch.apply(this, args); - sandbox.emit(sandbox.FETCH_REQUEST_SEND_EVENT, fetchPromise); - FetchSandbox._processFetchPromise(fetchPromise); + sandbox.emit(sandbox.FETCH_REQUEST_SEND_EVENT, fetchPromise); return fetchPromise; };