mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 12:02:44 +00:00
chore: generate
This commit is contained in:
@@ -152,8 +152,7 @@ import { Effect, Layer } from "effect"
|
||||
import { Account } from "@/account/account"
|
||||
|
||||
const failingAccountLayer = Layer.mock(Account.Service, {
|
||||
orgsByAccount: () =>
|
||||
Effect.fail(new Account.AccountServiceError({ message: "simulated upstream failure" })),
|
||||
orgsByAccount: () => Effect.fail(new Account.AccountServiceError({ message: "simulated upstream failure" })),
|
||||
})
|
||||
```
|
||||
|
||||
|
||||
@@ -18,8 +18,7 @@ import { Effect, Layer } from "effect"
|
||||
const ORIG = await import("../../src/account/account")
|
||||
|
||||
const failingAccountLayer = Layer.mock(ORIG.Service, {
|
||||
orgsByAccount: () =>
|
||||
Effect.fail(new ORIG.AccountServiceError({ message: "simulated upstream failure" })),
|
||||
orgsByAccount: () => Effect.fail(new ORIG.AccountServiceError({ message: "simulated upstream failure" })),
|
||||
})
|
||||
|
||||
const mocked = {
|
||||
|
||||
Reference in New Issue
Block a user