mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-13 11:39:41 +03:00
c3a73eca34
Co-authored-by: thdxr <thdxr@users.noreply.github.com>
9 lines
327 B
TypeScript
9 lines
327 B
TypeScript
import { expect, test } from "bun:test"
|
|
import { Effect, Exit } from "effect"
|
|
import { openUrl } from "../src/ui/prompt"
|
|
|
|
test("suppresses browser open failures so the printed URL stays usable", async () => {
|
|
const exit = await Effect.runPromiseExit(openUrl("not-a-browser-url"))
|
|
expect(Exit.isSuccess(exit)).toBe(true)
|
|
})
|