mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
Add 404 test HTTP code for vendors
This commit is contained in:
parent
a3d4049c9c
commit
f34407fc43
@ -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 in option to wrap long calendar events to multiple lines using `wrapEvents` configuration option.
|
||||||
- Add test e2e `show title newsfeed` for newsfeed module.
|
- Add test e2e `show title newsfeed` for newsfeed module.
|
||||||
- Add task to check configuration file.
|
- 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.
|
- Add test default modules present modules/default/defaultmodules.js.
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
|
@ -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);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user