mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-03 22:36:09 +00:00
Cleanup testcases that had hard coded Date() values which override the testcase runner (#3601)
cleanup testcases with hard coded Date settings after #3597
This commit is contained in:
parent
cfa5c0d127
commit
c96326b760
@ -32,6 +32,7 @@ _This release is scheduled to be released on 2025-01-01._
|
|||||||
- [core] Fix loading node_helper of modules: avoid black screen, display errors and continue loading with next module (#3578)
|
- [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)
|
- [weather] changed default value for weatherEndpoint of provider openweathermap to "/onecall" (#3574)
|
||||||
- [tests] fix electron tests with mock dates, the mock on server side was missing (#3597)
|
- [tests] fix electron tests with mock dates, the mock on server side was missing (#3597)
|
||||||
|
- [tests] fix testcases with hard coded Date.now (#3597)
|
||||||
|
|
||||||
## [2.29.0] - 2024-10-01
|
## [2.29.0] - 2024-10-01
|
||||||
|
|
||||||
|
@ -30,10 +30,6 @@ let config = {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
Date.now = () => {
|
|
||||||
return new Date("19 Oct 2023 12:30:00 GMT-07:00").valueOf();
|
|
||||||
};
|
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
@ -30,10 +30,6 @@ let config = {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
Date.now = () => {
|
|
||||||
return new Date("19 Oct 2023 12:30:00 GMT-07:00").valueOf();
|
|
||||||
};
|
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
@ -30,10 +30,6 @@ let config = {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
Date.now = () => {
|
|
||||||
return new Date("19 Oct 2023 12:30:00 GMT-07:00").valueOf();
|
|
||||||
};
|
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
@ -30,10 +30,6 @@ let config = {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
Date.now = () => {
|
|
||||||
return new Date("14 Sep 2023 12:30:00 GMT+10:00").valueOf();
|
|
||||||
};
|
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
@ -30,10 +30,6 @@ let config = {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
Date.now = () => {
|
|
||||||
return new Date("14 Sep 2023 12:30:00 GMT+10:00").valueOf();
|
|
||||||
};
|
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
@ -30,10 +30,6 @@ let config = {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
Date.now = () => {
|
|
||||||
return new Date("14 Sep 2023 12:30:00 GMT+10:00").valueOf();
|
|
||||||
};
|
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
@ -22,10 +22,6 @@ let config = {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
Date.now = () => {
|
|
||||||
return new Date("07 Mar 2024 10:38:00 GMT-07:00").valueOf();
|
|
||||||
};
|
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
@ -22,10 +22,6 @@ let config = {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
Date.now = () => {
|
|
||||||
return new Date("01 Sept 2024 10:38:00 GMT+2:00").valueOf();
|
|
||||||
};
|
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user