From 6946b499778bba8d4a031b225170645a303708e1 Mon Sep 17 00:00:00 2001 From: sam detweiler Date: Wed, 23 Oct 2024 16:46:32 -0500 Subject: [PATCH] Fixtestcase calendar testcase failure (#3596) fix calendar testcase failing after date change (exposes helper failure) --- CHANGELOG.md | 1 + tests/configs/modules/calendar/show-duplicates-in-calendar.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 731ef6c3..55520253 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ _This release is scheduled to be released on 2025-01-01._ - [updatenotification] Fix pm2 using detection when pm2 script is in MagicMirror root folder (#3576) - [core] Fix loading node_helper of modules: avoid black screen, display errors and continue loading with next module (#3578) - [weather] changed default value for weatherEndpoint of provider openweathermap to "/onecall" (#3574) +- [calendar] fix one testcase which had a date expired problem.. ## [2.29.0] - 2024-10-01 diff --git a/tests/configs/modules/calendar/show-duplicates-in-calendar.js b/tests/configs/modules/calendar/show-duplicates-in-calendar.js index 7ad42094..a4246581 100644 --- a/tests/configs/modules/calendar/show-duplicates-in-calendar.js +++ b/tests/configs/modules/calendar/show-duplicates-in-calendar.js @@ -27,6 +27,10 @@ let config = { ] }; +Date.now = () => { + return new Date("15 Sep 2024 12:30:00 GMT").valueOf(); +}; + /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") { module.exports = config;