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.