Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44485

Add unit tests for sakai-i18n.js

    XMLWordPrintable

    Details

    • 21 Status:
      Resolved
    • Test Plan:
      Hide

      This can only be tested out by a developer.

      Build webcomponents, with tests on (the default). You should see output a bit like this:

      — frontend-maven-plugin:1.8.0:npm (JS Tests) @ webcomponents —
      [INFO] Running 'npm run test' in /Users/fisha/git/sakai/webcomponents/tool/src/main/frontend
      [INFO]
      [INFO] > webcomponents@1.0.0 test /Users/fisha/git/sakai/webcomponents/tool/src/main/frontend
      [INFO] > mocha -r esm -r jsdom-global/register -r mock-local-storage
      [INFO]
      [INFO]
      [INFO]
      [INFO] Sakai i18n
      [INFO] loadProperties
      [INFO] ✓ Expects to work with portal.locale set
      [INFO] ✓ Expects to work with an explicit lang
      [INFO] ✓ Expects properties to be in sessionStorage after the call
      [INFO] ✓ Expects properties to be not be in sessionStorage if caching is off
      [INFO]
      [INFO]
      [INFO] 4 passing (14ms)

      Show
      This can only be tested out by a developer. Build webcomponents, with tests on (the default). You should see output a bit like this: — frontend-maven-plugin:1.8.0:npm (JS Tests) @ webcomponents — [INFO] Running 'npm run test' in /Users/fisha/git/sakai/webcomponents/tool/src/main/frontend [INFO] [INFO] > webcomponents@1.0.0 test /Users/fisha/git/sakai/webcomponents/tool/src/main/frontend [INFO] > mocha -r esm -r jsdom-global/register -r mock-local-storage [INFO] [INFO] [INFO] [INFO] Sakai i18n [INFO] loadProperties [INFO] ✓ Expects to work with portal.locale set [INFO] ✓ Expects to work with an explicit lang [INFO] ✓ Expects properties to be in sessionStorage after the call [INFO] ✓ Expects properties to be not be in sessionStorage if caching is off [INFO] [INFO] [INFO] 4 passing (14ms)

      Description

      Add unit tests for the sakai-i18n js module. This will be the start of a good testing regime for our JS components.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                a.fish@lancaster.ac.uk Adrian Fish
                Reporter:
                a.fish@lancaster.ac.uk Adrian Fish
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration