mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-03 22:36:09 +00:00
fixes #3597 Changes: - electron tests: add mocking to `electron.js` for mocking the server side, before only the browser side was mocked - publish "/tests/configs" and "/tests/mocks" always in `server.js`, this reverts a change done with latest release, we need this for debugging (otherwise you get on the screen that your config has errors but config check is successful ...) - revert hotfix in `tests/configs/modules/calendar/show-duplicates-in-calendar.js` - fix `tests/configs/modules/calendar/custom.js` to allow events in the past (~~I don't know how this could work before~~ when testing css classes `yesterday` and `dayBeforeYesterday` --> it worked before because the server side did not mock and therefore was not in the past)
34 lines
701 B
JavaScript
34 lines
701 B
JavaScript
let config = {
|
|
address: "0.0.0.0",
|
|
ipWhitelist: [],
|
|
timeFormat: 12,
|
|
|
|
modules: [
|
|
{
|
|
module: "calendar",
|
|
position: "bottom_bar",
|
|
config: {
|
|
maximumEntries: 30,
|
|
hideDuplicates: false,
|
|
calendars: [
|
|
{
|
|
maximumEntries: 15,
|
|
maximumNumberOfDays: 10000,
|
|
url: "http://localhost:8080/tests/mocks/calendar_test.ics" // contains 11 events
|
|
},
|
|
{
|
|
maximumEntries: 15,
|
|
maximumNumberOfDays: 10000,
|
|
url: "http://localhost:8080/tests/mocks/calendar_test_clone.ics" // clone of upper calendar
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
|
if (typeof module !== "undefined") {
|
|
module.exports = config;
|
|
}
|