Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix integration test - Adapter

  • Loading branch information...
commit b9dfaac75c54a3afee7ddaabb49f7e7f3bf0289b 1 parent bb407bd
@piuccio piuccio authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/libraries/ConnectivityAdapter.js
View
8 src/libraries/ConnectivityAdapter.js
@@ -12,9 +12,15 @@
};
var later = function (callback, response) {
setTimeout(function () {
- callback.call(null);
+ callback.call(null, normalizeResponse(response));
}, 4);
};
+ var normalizeResponse = function (response) {
+ return {
+ status : response.status || 0,
+ responseText : response.responseText
+ };
+ };
var AdapterPromise = function (request) {
/**
Please sign in to comment.
Something went wrong with that request. Please try again.