Revert "+ dont manipulate response data"

This reverts commit bfc6ba2008.
This commit is contained in:
antikalk
2020-05-21 22:41:49 +02:00
parent 29e0b385de
commit fed2b03cc6
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -898,7 +898,7 @@ const tests = [
}, resolve, reject); },
validationFunc: function (driver, result) {
result.type.should.be.equal('resolved');
should.equal('', result.data.data);
should.equal(null, result.data.data);
}
},
{
+3 -3
View File
@@ -449,7 +449,7 @@ describe('Common helpers', function () {
const helpers = require('../www/helpers')(null, jsUtil, null, messages, null, errorCodes);
const handler = helpers.injectRawResponseHandler(
'json',
response => should.equal('', response.data)
response => should.equal(null, response.data)
);
handler({ data: emptyData });
@@ -469,7 +469,7 @@ describe('Common helpers', function () {
const helpers = require('../www/helpers')(null, jsUtil, null, messages, fakeBase64, errorCodes);
const handler = helpers.injectRawResponseHandler(
'arraybuffer',
response => should.equal('', response.data)
response => should.equal(null, response.data)
);
handler({ data: '' });
@@ -494,7 +494,7 @@ describe('Common helpers', function () {
const handler = helpers.injectRawResponseHandler(
'blob',
(response) => {
should.equal('', response.data)
should.equal(null, response.data)
}
);