Skip to content

[Gap-Audit] 035 Messaging Service Tests: cover 4 untested services #41

@TortoiseWolfe

Description

@TortoiseWolfe

Summary

4 of 8 messaging services have test files. The largest service (message-service.ts, 1200+ LOC) is one of the four uncovered.

What's shipped

  • connection-service.test.ts (310 LOC)
  • gdpr-service.test.ts (542 LOC)
  • offline-queue-service.test.ts (499 LOC)
  • welcome-service.test.ts (458 LOC)

Gaps — 4 services missing tests

Service LOC What it does
message-service.ts 1200+ encryption, send, retrieve, edit, delete
key-service.ts ~28KB key generation, storage, validation
group-key-service.ts ~23KB group key rotation
audit-logger.ts (in services/auth) audit trail logging

Why this matters

Per 35 spec: NFR-001 (100% line coverage for all 4 services). The largest, most security-critical messaging code path has no unit-test coverage; bugs here have caused multiple reverts (issues #7, #8 cover the systemic patterns).

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgap-auditIdentified during 2026-04-25 planned-vs-shipped auditpriority:p3Low — defer (heavy work, polish, nice-to-haves)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions