Clear cookies?
Read the statement by Michael Teeuw here.
Posts
-
RE: email module black screen
@tosti007 At certain point some errors for this kind of case is because a forget
npm install
We’ll can figure out a solution for problems like that.
-
RE: Mobile app (bachelor thesis)
I just answered it. The data of result will be available into an place?.
-
RE: Test suite for MagicMirror²
@Cato Hi!, The documentation for tests are living only in test source ;) This is something. We need to an better documentation.
Are you interested to do it? https://trello.com/c/UwqL27A3/29-add-documentation-of-testsuite
I’m not a very good at writing documentation.
But in short terms,
The tests are living in
tests
directory, there two kind of test, unit and e2e.We are using
mocha
andspectron
`, the last one is for the tests of e2e. For every e2e test is using a configuration file. When the test run load the configuration file and we check expected result of the MagicMirror instance in Electron mode.You can using the follow sentences to run testsuite
- Unit test:
npm run test:unit
- E2e tests:
npm run test:e2e
- Unit + e2e:
npm test
If you can run especific test you need execute mocha from your path where is installed, in my case inside of MagicMirror directorio. Example of running the specific unit test for calendar functions.
NODE_ENV=test ./node_modules/mocha/bin/mocha tests/unit/functions/calendar_spec.js
Result:
Functions into modules/default/calendar/calendar.js capFirst ✓ for 'rodrigo' should return 'Rodrigo' ✓ for '123m' should return '123m' ✓ for 'magic mirror' should return 'Magic mirror' ✓ for ',a' should return ',a' ✓ for 'ñandú' should return 'Ñandú' shorten ✓ for ' String with whitespace at the beginning that needs trimming' should return 'String with whit…' ✓ for 'long string that needs shortening' should return 'long string that…' ✓ for 'short string' should return 'short string' ✓ for 'long string with no maxLength defined' should return 'long string with no maxLength defined' ✓ should return an empty string if shorten is called with a non-string ✓ should not shorten the string if shorten is called with a non-number maxLength ✓ should wrap the string instead of shorten it if shorten is called with wrapEvents = true (with maxLength defined as 20) ✓ should wrap the string instead of shorten it if shorten is called with wrapEvents = true (without maxLength defined, default 25) 13 passing (29ms)
If need something is not clear let me know.
- Unit test:
-
RE: Pm2 dont start my scripts on startup
@theusu5k What said when you run ?
pm2 list
-
RE: Font Awesome Update...
I propused the idea mentioned before
https://github.com/MichMich/MagicMirror/pull/775 -
RE: Looking for Beta-testers!
@morozgrafix Yes, it’s a some things I’ve seen a few minutes ago.
Already pushed a Hotfix. Its not the most elegant soluction of the world but it work. If there something can be better is welcome ;)
Ps: Pull request is https://github.com/MichMich/MagicMirror/pull/676
-
RE: Clocks and Two Time Zones
@strawberry-3.141 Yes, Its work :). I’ve checking my config and is set
nodeIntegration
totrue
and this fail with that. I presuming this can be some tests fail at sometimes, I’m not sure.I share my config for failure.
var config = { port: 8080, ipWhitelist: [ ], language: "en", kioskmode: true, timeFormat: 24, units: "metric", electronOptions: { webPreferences: { nodeIntegration: true, }, }, modules: [ { module: "clock", position: "center", config: { timezone: "America/Campo_Grande" } }, ] }; if (typeof module !== "undefined"){module.exports = config;}