MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / wrapped

Function wrapped

packages/hono/test/utils/isMiddleware.test.ts:26–26  ·  view source on GitHub ↗
(_c: unknown, _next: unknown)

Source from the content-addressed store, hash-verified

24 describe('__COMPOSED_HANDLER unwrapping', () => {
25 it('reports the original arity-1 handler when an arity-2 wrapper composes it', () => {
26 const wrapped = (_c: unknown, _next: unknown) => undefined;
27 (wrapped as unknown as Record<string, unknown>).__COMPOSED_HANDLER = (_c: unknown) => undefined;
28
29 expect(isMiddleware(wrapped)).toBe(false);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected