mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 10:45:33 -04:00
9 lines
268 B
TypeScript
9 lines
268 B
TypeScript
import { expect, test } from "bun:test"
|
|
import { App } from "@opencode-ai/core/app"
|
|
|
|
test("formats app metadata as a user agent", () => {
|
|
expect(App.useragent(App.make({ name: "sdk", version: "1.2.3", channel: "beta" }))).toBe(
|
|
"opencode/beta/1.2.3/sdk",
|
|
)
|
|
})
|