| 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() {} })); |
nothing calls this directly
no outgoing calls
no test coverage detected