Skip to content

Add API Route Tests for DELETE /api/reviews/[id] #369

Description

@ReinaMaze

Test: Write tests for review deletion API endpoint Description: /api/reviews/[id] DELETE route untested; needs authorization checks.

Acceptance Criteria:

  • Test DELETE only works for review author or admin
  • Test 404 if review ID not found
  • Test 403 if user not authorized
  • Test success response confirms deletion
  • Test concurrent delete attempts handled safely
  • Test audit log entry created for deletion

Activity

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

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions