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