mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-05 15:29:53 +00:00
10 lines
336 B
TypeScript
10 lines
336 B
TypeScript
import { expect, test } from "bun:test"
|
|
import { Schema } from "effect"
|
|
import { Agent } from "../src/agent.js"
|
|
|
|
test("Agent.Color preserves configured colors at the public boundary", () => {
|
|
const encode = Schema.encodeSync(Agent.Color)
|
|
|
|
expect(encode("info")).toBe("info")
|
|
expect(encode("custom-color")).toBe("custom-color")
|
|
})
|