agent.test.ts 336 B

12345678910
  1. import { expect, test } from "bun:test"
  2. import { Schema } from "effect"
  3. import { Agent } from "../src/agent.js"
  4. test("Agent.Color preserves configured colors at the public boundary", () => {
  5. const encode = Schema.encodeSync(Agent.Color)
  6. expect(encode("info")).toBe("info")
  7. expect(encode("custom-color")).toBe("custom-color")
  8. })