mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-13 07:11:55 +00:00
chore: generate
This commit is contained in:
parent
e78944e9a4
commit
51618e9cef
3 changed files with 170 additions and 182 deletions
|
|
@ -44,10 +44,7 @@ function testLayer(
|
|||
httpHandler: (request: HttpClientRequest.HttpClientRequest) => Response,
|
||||
spawnHandler?: (cmd: string, args: readonly string[]) => string,
|
||||
) {
|
||||
return Installation.layer.pipe(
|
||||
Layer.provide(mockHttpClient(httpHandler)),
|
||||
Layer.provide(mockSpawner(spawnHandler)),
|
||||
)
|
||||
return Installation.layer.pipe(Layer.provide(mockHttpClient(httpHandler)), Layer.provide(mockSpawner(spawnHandler)))
|
||||
}
|
||||
|
||||
describe("installation", () => {
|
||||
|
|
@ -139,8 +136,7 @@ describe("installation", () => {
|
|||
const layer = testLayer(
|
||||
() => jsonResponse({}), // HTTP not used for tap formula
|
||||
(cmd, args) => {
|
||||
if (cmd === "brew" && args.includes("anomalyco/tap/opencode") && args.includes("--formula"))
|
||||
return "opencode"
|
||||
if (cmd === "brew" && args.includes("anomalyco/tap/opencode") && args.includes("--formula")) return "opencode"
|
||||
if (cmd === "brew" && args.includes("--json=v2")) return brewInfoJson
|
||||
return ""
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue