---
id: TST-PFM-SEC-211
title: Resend invitation unit checks
kind: unit
product_area: platform
module: security
revision: 2
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
repository: services-platform
files:
  - modules/security/tests/unit/services/invitations/resend-invitation.spec.js
implements:
  - ATS-PFM-SEC-008-07
environment: mock
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 1
isolation: The suite owns its input fixtures and installed doubles.
assertion_evidence:
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/invitations/resend-invitation.spec.js#security
      capability: resend-invitation
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/invitations/resend-invitation.spec.js#supersedes
      the outstanding invitations and issues a new one with a new token, in one transaction
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/invitations/resend-invitation.spec.js#writes
      a new invitation without a token, provisions it after the commit, and answers how the e-mail
      went
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/invitations/resend-invitation.spec.js#refuses
      a disabled account, and refuses it again in the repository if the capability is bypassed
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/invitations/resend-invitation.spec.js#refuses
      an account that has already accepted, telling the administrator to reset the password instead
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/invitations/resend-invitation.spec.js#answers
      a user outside the caller's scope and an unknown one alike: not found
  - provenance: test
    source: >-
      services-platform:modules/security/tests/unit/services/invitations/resend-invitation.spec.js#audits
      the resend against the administrator who asked for it
dependency_evidence: >-
  The production decision runs in-process. The suite substitutes the clock, repository reads or
  writes where its dependency setup supplies them; those boundaries have no live-service proof here.
evidence:
  - 'services-platform:modules/security/tests/unit/services/invitations/resend-invitation.spec.js'
  - >-
    Static review at the recorded source revision; executable results remain not-run and conformance
    remains not-verified.
binding_note: >-
  Each binding names the scenario to which this file contributes assertions. A binding is not a
  recorded pass and does not extend the file’s dependency boundary.
examiner: codex
examined_at: '2026-10-23'
final_text: OpenAI
dependency_review:
  provenance: test
  source: 'services-platform:modules/security/tests/unit/services/invitations/resend-invitation.spec.js'
  explicit_no_doubles: false
  identified_double_boundaries:
    - the clock
    - repository reads or writes
---
# Resend invitation unit checks

## Verification Boundary

The file evaluates production helpers with controlled inputs in-process. The assertion references identify the source checks for resend invitation.

## What This Suite Proves

The source assertions support the observations named in the bound scenarios. A scenario spanning multiple files must retain the other files’ contributions.

## What It Does Not Prove

This examination does not run the suite. Passing behavior, deployed conformance and the behavior of substituted dependencies require separate execution evidence.

## Real Dependencies and Test Doubles

The production decision runs in-process. The suite substitutes the clock, repository reads or writes where its dependency setup supplies them; those boundaries have no live-service proof here.

## Must Not Be Doubled

Keep the production helper, schema, matcher or declaration under examination real. Substituting the decision itself would remove the behavior the assertions exercise.
