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

Class TestRoute

packages/core/test/middleware/routes-mapper.spec.ts:15–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14describe('RoutesMapper', () => {
15 @Controller('test')
16 class TestRoute {
17 @RequestMapping({ path: 'test' })
18 public getTest() {}
19
20 @RequestMapping({ path: 'another', method: RequestMethod.DELETE })
21 public getAnother() {}
22
23 @Version('1')
24 @Get('versioned')
25 public getVersioned() {}
26 }
27
28 let mapper: RoutesMapper;
29 beforeEach(() => {

Callers

nothing calls this directly

Calls 3

ControllerFunction · 0.90
RequestMappingFunction · 0.90
VersionFunction · 0.90

Tested by

no test coverage detected