Skip to content

Test/365 js data models unit tests - #379

Merged
suraj-yadav0 merged 1 commit into
release/v1.3.4from
test/365-js-data-models
Oct 13, 2026
Merged

suraj-yadav0 merged 1 commit into
release/v1.3.4from
test/365-js-data-models

Conversation

@suraj-yadav0

Copy link
Copy Markdown
Collaborator

Closes #365

Adds automated QML test coverage for JavaScript data models:

  • models/task.js: Assignee parsing, due status calculations, stage classification, priority setting, and local ID mapping.
  • models/timesheet.js: Timesheet creation, duration parsing, readiness checks, status transitions, and deleted flags.
  • models/project.js: Offline cache operations, project details, favorites toggle, and project updates.
  • models/activity.js: Activity ID sanitization, icon mappings, date filtering, and CRUD operations.
  • models/accounts.js: Default account handling, duplicate checks, sync settings, and cascade deletion.
  • models/notifications.js: Notification payloads, read counts, and sync notification filters.
  • models/Main.js: Date calculations, entity name resolution, quadrant differences, and spent hours queries.

All 437 QML unit tests and 54 Python unit tests pass.

Add QML test suites covering data models including task, timesheet, project, activity, accounts, notifications, and main helpers.
@suraj-yadav0 suraj-yadav0 self-assigned this Oct 13, 2026
@suraj-yadav0 suraj-yadav0 added enhancement New feature or request Test Test Suite labels Oct 13, 2026
@suraj-yadav0 suraj-yadav0 linked an issue Oct 13, 2026 that may be closed by this pull request
@suraj-yadav0
suraj-yadav0 merged commit 8fcefb0 into release/v1.3.4 Oct 13, 2026
4 checks passed
@suraj-yadav0
suraj-yadav0 deleted the test/365-js-data-models branch October 13, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Test Test Suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unit tests for JavaScript Data Models

1 participant