MCPcopy Index your code
hub / github.com/oakserver/oak / MockMiddlewareObject

Class MockMiddlewareObject

middleware.test.ts:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 name: "isMiddlewareObject()",
41 async fn() {
42 class MockMiddlewareObject implements MiddlewareObject {
43 handleRequest(
44 _context: Context<Record<string, any>, Record<string, any>>,
45 _next: Next,
46 ): unknown {
47 return;
48 }
49 }
50
51 assert(isMiddlewareObject(new MockMiddlewareObject()));
52 assert(isMiddlewareObject({ handleRequest() {} }));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected