Skip to content

Commit

Permalink
fix client tests, some reverts to 0.39.0 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerch committed Aug 21, 2021
1 parent 9698ea6 commit 898c4d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/client-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ var fs = require('fs'),
var xmlStr = '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n\t<head>\n\t\t<title>404 - Not Found</title>\n\t</head>\n\t<body>\n\t\t<h1>404 - Not Found</h1>\n\t\t<script type="text/javascript" src="http://gp1.wpc.edgecastcdn.net/00222B/beluga/pilot_rtm/beluga_beacon.js"></script>\n\t</body>\n</html>';
client.MyOperation({ _xml: xmlStr }, function (err, result, raw, soapHeader) {
assert.ok(err);
assert.notEqual(err.response.data.indexOf('html'), -1);
assert.notEqual(raw.indexOf('html'), -1);
done();
});
});
Expand Down Expand Up @@ -798,10 +798,10 @@ var fs = require('fs'),
client.MyOperation({}, function (err, result) {
assert.ok(err);
assert.ok(err.response);
if (typeof err.response.data != 'string') {
err.response.data = JSON.stringify(err.response.data)
if (typeof err.body != 'string') {
err.body = JSON.stringify(err.body);
}
assert.equal(err.response.data, '{"tempResponse":"temp"}');
assert.equal(err.body, '{"tempResponse":"temp"}');
done();
});
}, baseUrl);
Expand Down

0 comments on commit 898c4d5

Please sign in to comment.