mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +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).
|
||||
- Use of `logger.js` in jest tests.
|
||||
- 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
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* @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")) {
|
||||
jest.fn();
|
||||
} else {
|
||||
@ -14,7 +14,7 @@ function myError(err) {
|
||||
global.console = {
|
||||
log: jest.fn(),
|
||||
dir: console.dir,
|
||||
error: myError,
|
||||
error: mockError,
|
||||
warn: console.warn,
|
||||
info: jest.fn(),
|
||||
debug: console.debug
|
||||
|
Loading…
x
Reference in New Issue
Block a user