Skip to content

[BE-137] audits (stocktake) module has zero test coverage #1279

Description

@yusuftomilola

Overview

AuditsService (backend/src/audits/audits.service.ts), backing create-audit-session.dto.ts/record-audit-item.dto.ts and the AuditSession/AuditItem entities, has no test file anywhere in the module or the root-level stray specs.

Tasks

  • Add audits.service.spec.ts covering session creation, item recording, and whatever discrepancy/status logic exists on AuditSession/AuditItem.
  • Cover the not-found paths for both entities.

Acceptance Criteria

  • The audits module has dedicated unit tests for its session and item flows.

Notes for Contributors

Comment below to be assigned.

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendtestingTests, QA, and quality assurance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions