test(httpapi): cover hono bridge middleware (#24216)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Instance } from "@/project/instance"
|
||||
import * as InstanceState from "@/effect/instance-state"
|
||||
import { Project } from "@/project"
|
||||
import { Effect, Layer, Schema } from "effect"
|
||||
import { HttpApi, HttpApiBuilder, HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi"
|
||||
@@ -54,7 +54,7 @@ export const projectHandlers = Layer.unwrap(
|
||||
})
|
||||
|
||||
const current = Effect.fn("ProjectHttpApi.current")(function* () {
|
||||
return Instance.project
|
||||
return (yield* InstanceState.context).project
|
||||
})
|
||||
|
||||
return HttpApiBuilder.group(ProjectApi, "project", (handlers) =>
|
||||
|
||||
Reference in New Issue
Block a user