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

@ -12,7 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Add in option to wrap long calendar events to multiple lines using `wrapEvents` configuration option.
- Add test e2e `show title newsfeed` for newsfeed module.
- Add task to check configuration file.
- Add test check URLs of vendors.
- Add test check URLs of vendors 200 and 404 HTTP CODE.
- Add test default modules present modules/default/defaultmodules.js.
### Updated

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);
});
});
});
});
});