mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-30 04:59:32 +00:00
add test for error on 200 rc test path
This commit is contained in:
parent
9e5561936a
commit
4da6e3ecee
@ -35,7 +35,10 @@ 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) {
|
||||
expect(res.statusCode).to.equal(200);
|
||||
if (!err)
|
||||
expect(res.statusCode).to.equal(200);
|
||||
else
|
||||
mlog.pending(`There error vendor 200 test ${err}`);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user