mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-17 12:58:44 +00:00
11 lines
406 B
TypeScript
11 lines
406 B
TypeScript
import { expect, test } from "bun:test"
|
|
import { matches } from "../src/frontend/actions"
|
|
|
|
test("matches literal screen text", () => {
|
|
const harness = { screen: () => "OpenCode [ready].*" }
|
|
|
|
expect(matches(harness, "OpenCode")).toBe(true)
|
|
expect(matches(harness, "[ready].*")).toBe(true)
|
|
expect(matches(harness, "OpenCode.*ready")).toBe(false)
|
|
expect(matches(harness, "opencode")).toBe(false)
|
|
})
|