| 525 | it('should make overridden providers available in pipes', () => { |
| 526 | const TOKEN_A = new InjectionToken('TOKEN_A'); |
| 527 | @Pipe({ |
| 528 | name: 'testPipe', |
| 529 | }) |
| 530 | class TestPipe { |
| 531 | constructor(@Inject(TOKEN_A) private token: string) {} |
| 532 | |
| 533 | transform(value: string): string { |
| 534 | return `transformed ${value} using ${this.token} token`; |
| 535 | } |
| 536 | } |
| 537 | @NgModule({ |
| 538 | imports: [TestPipe], |
| 539 | exports: [TestPipe], |