MCPcopy Create free account
hub / github.com/angular/angular / TestPipe

Class TestPipe

packages/core/test/test_bed_spec.ts:527–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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],

Callers

nothing calls this directly

Calls 1

PipeInterface · 0.90

Tested by

no test coverage detected