Skip to content

Unit tests for JavaScript Feature Scripts and Utility Helpers #366

Closed

Description

@suraj-yadav0

Part of #357

Add unit test coverage for feature-specific scripts, navigation routes, chart calculators, and sanitizers.

Target Modules

  • qml/app/navigation/NavigationRoutes.js: Route definitions, route path resolution, active tab mapping
  • qml/features/dashboard/js/chartUtils.js: Chart data transforms, coordinate mappings, series aggregations, point calculations
  • qml/features/dashboard/js/chartWorker.js: Worker message processing, data parsing, computation helpers
  • qml/features/tasks/js/taskFormUtils.js: Task form validation rules, due date math, status/stage mappings
  • qml/components/richtext/js/html-sanitizer.js: HTML tag sanitization, allowed tag filtering, XSS prevention
  • qml/components/richtext/js/squire-qtwebengine-bridge.js: WebEngine message passing, command formatting

Implementation

  • Can be tested via Qt Quick Test (TestCase importing .js files via .import) or a headless test harness.

Activity

  1. suraj-yadav0 commented on Oct 26, 2026

    @suraj-yadav0
    CollaboratorAuthor

    Resolved in PR #381.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions