mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 02:36:57 -04:00
11 lines
336 B
TypeScript
11 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")
|
|
})
|