Add 404 test HTTP code for vendors

This commit is contained in:
Rodrigo Ramírez Norambuena
2017-04-18 23:44:50 -03:00
parent a3d4049c9c
commit f34407fc43
2 changed files with 10 additions and 1 deletions

View File

@@ -32,5 +32,14 @@ describe("Vendors", function () {
});
});
});
Object.keys(vendors).forEach(vendor => {
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) {
expect(res.statusCode).to.equal(404);
});
});
});
});
});