I have the following controller
@Controller('foo') export class Foo { constructor() {} @Get() bar(@Headers() headers: Headers): void { return; } }
My question is, how could I call Foo.bar in the test to test the bar method with the Headers function.
Foo.bar
2.1m questions
2.1m answers
60 comments
57.0k users