Skip to content

API wrapper baseline coverage #53

Description

@ArchILLtect

Area / Component

api.ts: buildUrl/normalizeJoin, api

Test Cases

  • buildUrl passes through absolute URLs (e.g., https://example.com/x)
  • returns parsed JSON on success (GET /api/me)
  • returns text when response is not JSON (GET /api/version)
  • throws with structured cause on error JSON (POST /api/auth/login; assert message and err.cause)

Target Release

0.2.1

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

    roadmapPlanned feature or strategic goal from the project roadmaptype:test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions