MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. roramirez
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    R
    Offline
    • Profile
    • Following 0
    • Followers 5
    • Topics 5
    • Posts 194
    • Groups 2

    Topics

    • R

      MagicMirror in Slack ... we'll see you there.

      Watching Ignoring Scheduled Pinned Locked Moved MagicMirror
      14
      0 Votes
      14 Posts
      12k Views
      Krato5K
      honestly we are planning for another way after the administartion agree , plz follow this toppic ! https://forum.magicmirror.builders/topic/6920/discordapp-gitter-for-non-slack-users
    • R

      Module template

      Watching Ignoring Scheduled Pinned Locked Moved Education
      8
      4 Votes
      8 Posts
      6k Views
      R
      Hey, new release [1.2.0] - 2017-07-21 Use getStyles for module Include node 7 support Add test for ESLint, stylelint, jsonlint, markdownlint and js-yaml Include create CHANGELOG file
    • R

      MMM-ImagesPhotos - Show images from a directory

      Watching Ignoring Scheduled Pinned Locked Moved Utilities
      85
      5 Votes
      85 Posts
      103k Views
      KamiSchamiK
      🙈 ok, i will try it
    • R

      custom.css

      Watching Ignoring Scheduled Pinned Locked Moved Bug Hunt
      1
      0 Votes
      1 Posts
      2k Views
      R
      Hi, this is simple. I found in custom.css the comment Changes to this files will be ignored by GIT. Is already added in gitignore file. if I modified this appear in your changes to stage on git. Well, is really not ignore. Suggestions?
    • R

      Test suite for MagicMirror²

      Watching Ignoring Scheduled Pinned Locked Moved Upcoming Features
      42
      2 Votes
      42 Posts
      43k Views
      R
      @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 and spectron`, 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.
    • 1 / 1