-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allowed network plugins to see the request type.
Closes #602 Change-Id: Ib86389956c4908d94184abe8775d497b09a5f90e
- Loading branch information
Showing
3 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,9 +266,10 @@ describe('NetworkingEngine', /** @suppress {accessControls} */ function() { | |
var request = createRequest('resolve://foo'); | ||
request.method = 'POST'; | ||
|
||
resolveScheme.and.callFake(function(uri, request) { | ||
resolveScheme.and.callFake(function(uri, request, requestTypePassed) { | ||
expect(uri).toBe(request.uris[0]); | ||
expect(request).toEqual(request); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
joeyparrish
Member
|
||
expect(requestTypePassed).toEqual(requestType); | ||
return Promise.resolve({}); | ||
}); | ||
networkingEngine.request(requestType, request).catch(fail).then(done); | ||
|
This will always be true no?