mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
add CHANGELOG
This commit is contained in:
parent
f750436b64
commit
1034171e91
@ -27,7 +27,7 @@ _This release is scheduled to be released on 2021-10-01._
|
|||||||
- Refactored methods from weatherproviders into weatherobject (isDaytime, updateSunTime).
|
- Refactored methods from weatherproviders into weatherobject (isDaytime, updateSunTime).
|
||||||
- Use of `logger.js` in jest tests.
|
- Use of `logger.js` in jest tests.
|
||||||
- Run prettier over all relevant files.
|
- Run prettier over all relevant files.
|
||||||
- Move test needing electron in new category `electron`, use `server only` mode in `e2e` tests.
|
- Move tests needing electron in new category `electron`, use `server only` mode in `e2e` tests.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* @param {string} err The error message.
|
* @param {string} err The error message.
|
||||||
*/
|
*/
|
||||||
function myError(err) {
|
function mockError(err) {
|
||||||
if (err.includes("ECONNREFUSED") || err.includes("ECONNRESET") || err.includes("socket hang up") || err.includes("exports is not defined")) {
|
if (err.includes("ECONNREFUSED") || err.includes("ECONNRESET") || err.includes("socket hang up") || err.includes("exports is not defined")) {
|
||||||
jest.fn();
|
jest.fn();
|
||||||
} else {
|
} else {
|
||||||
@ -14,7 +14,7 @@ function myError(err) {
|
|||||||
global.console = {
|
global.console = {
|
||||||
log: jest.fn(),
|
log: jest.fn(),
|
||||||
dir: console.dir,
|
dir: console.dir,
|
||||||
error: myError,
|
error: mockError,
|
||||||
warn: console.warn,
|
warn: console.warn,
|
||||||
info: jest.fn(),
|
info: jest.fn(),
|
||||||
debug: console.debug
|
debug: console.debug
|
||||||
|
Loading…
x
Reference in New Issue
Block a user