| 522 | it('should make overridden providers available in pipes', () => { |
| 523 | const TOKEN_A = new InjectionToken('TOKEN_A'); |
| 524 | @Pipe({ |
| 525 | name: 'testPipe', |
| 526 | }) |
| 527 | class TestPipe { |
| 528 | constructor(@Inject(TOKEN_A) private token: string) {} |
| 529 | |
| 530 | transform(value: string): string { |
| 531 | return `transformed ${value} using ${this.token} token`; |
| 532 | } |
| 533 | } |
| 534 | @NgModule({ |
| 535 | imports: [TestPipe], |
| 536 | exports: [TestPipe], |
nothing calls this directly
no test coverage detected
searching dependent graphs…