Token Mint.Test
Path:
loom-sprint-scaffold/loom/tests/orchestrator/token-mint.test.tsRelative: loom/tests/orchestrator/token-mint.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 180Bytes: 5,795Imports: 6Exports: 0has tests
Content Preview
- /**
- * Tests for TokenMint (H1.5).
- *
- * Proves:
- * - mint → Loop 3 verify passes (round-trip)
- * - expired tokens fail
- * - tampered tokens fail
- * - replayed tokens fail (single-use via consumed nonce)
- */
- import { describe, expect, test } from "bun:test";
- import { TokenMint, TokenError } from "../../src/orchestrator/core/token-mint";
- import { checkAllowlist } from "../../src/execution/reversibility-gate";
- import type { KVStore } from "../../src/orchestrator/core/types";
- import type { Dispatc