MCPcopy
hub / github.com/nestjs/nest / Test

Class Test

packages/common/test/decorators/route-params.decorator.spec.ts:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36 it('should enhance class with expected request metadata', () => {
37 class Test {
38 @Get(requestPath)
39 public static test(@Param('id', ParseIntPipe) params) {}
40
41 @Get(requestPathUsingArray)
42 public static testUsingArray(@Param('id') params) {}
43 }
44
45 const path = Reflect.getMetadata('path', Test.test);
46 const args = Reflect.getMetadata(

Callers

nothing calls this directly

Calls 1

PostClass · 0.50

Tested by

no test coverage detected