mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-03 22:36:09 +00:00
Merge pull request #1753 from roramirez/tests-404-vendors
Tests 404 vendors
This commit is contained in:
commit
1b2673367e
10
CHANGELOG.md
10
CHANGELOG.md
@ -11,17 +11,19 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
*This release is scheduled to be released on 2019-10-01.*
|
*This release is scheduled to be released on 2019-10-01.*
|
||||||
|
|
||||||
### Added
|
|
||||||
- Adding a Malay (Malaysian) translation for MagicMirror²
|
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Spanish translation for "PRECIP"
|
- Spanish translation for "PRECIP"
|
||||||
|
- Adding a Malay (Malaysian) translation for MagicMirror²
|
||||||
|
- Add test check URLs of vendors 200 and 404 HTTP CODE.
|
||||||
|
|
||||||
|
### Updated
|
||||||
|
- Updatenotification module: Display update notification for a limited (configurable) time.
|
||||||
|
- Enabled e2e/vendor_spec.js tests
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
- Updatenotification module: Display update notification for a limited (configurable) time.
|
- Updatenotification module: Display update notification for a limited (configurable) time.
|
||||||
- The css/custom.css will be rename after the next release. We've add into `run-start.sh` a instruction by GIT to ignore with `--skip-worktree` and `rm --cached`. The history about this change [#1540].
|
- The css/custom.css will be rename after the next release. We've add into `run-start.sh` a instruction by GIT to ignore with `--skip-worktree` and `rm --cached`. The history about this change [#1540].
|
||||||
|
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Updatenotification module: Properly handle race conditions, prevent crash.
|
- Updatenotification module: Properly handle race conditions, prevent crash.
|
||||||
- Send `NEWS_FEED` notification also for the first news messages which are shown
|
- Send `NEWS_FEED` notification also for the first news messages which are shown
|
||||||
|
@ -9,7 +9,6 @@ const after = global.after;
|
|||||||
|
|
||||||
describe("Vendors", function () {
|
describe("Vendors", function () {
|
||||||
|
|
||||||
return; // Test still getting failed in Travis
|
|
||||||
|
|
||||||
helpers.setupTimeout(this);
|
helpers.setupTimeout(this);
|
||||||
|
|
||||||
@ -40,5 +39,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