Revert error logging introduced in 1e97b5c

This commit is contained in:
Rodrigo Ramírez Norambuena 2020-01-19 08:19:09 -03:00
parent 50b4d05ef5
commit 6e7edd9824

View File

@ -32,10 +32,7 @@ describe("Vendors", function () {
it(`should return 200 HTTP code for vendor "${vendor}"`, function () { it(`should return 200 HTTP code for vendor "${vendor}"`, function () {
urlVendor = "http://localhost:8080/vendor/" + vendors[vendor]; urlVendor = "http://localhost:8080/vendor/" + vendors[vendor];
request.get(urlVendor, function (err, res, body) { request.get(urlVendor, function (err, res, body) {
if (!err) expect(res.statusCode).to.equal(200);
{expect(res.statusCode).to.equal(200);}
else
{mlog.pending(`There error vendor 200 test ${err}`);}
}); });
}); });
}); });
@ -44,10 +41,7 @@ describe("Vendors", function () {
it(`should return 404 HTTP code for vendor https://localhost/"${vendor}"`, function() { it(`should return 404 HTTP code for vendor https://localhost/"${vendor}"`, function() {
urlVendor = "http://localhost:8080/" + vendors[vendor]; urlVendor = "http://localhost:8080/" + vendors[vendor];
request.get(urlVendor, function (err, res, body) { request.get(urlVendor, function (err, res, body) {
if (!err) expect(res.statusCode).to.equal(404);
{expect(res.statusCode).to.equal(404);}
else
{mlog.pending(`There error vendor 404 test ${err}`);}
}); });
}); });
}); });