File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import { UsageComponent } from './component/usage/usage.component';
2020import { AboutUsComponent } from './component/about-us/about-us.component' ;
2121import { DependencyGraphComponent } from './component/dependency-graph/dependency-graph.component' ;
2222import { Teams } from './component/teams/teams.component' ;
23- import { ToStringValuePipe } from 'src/app /pipe/to-string-value.pipe' ;
23+ import { ToStringValuePipe } from '. /pipe/to-string-value.pipe' ;
2424
2525@NgModule ( {
2626 declarations : [
Original file line number Diff line number Diff line change 1+ import { ToStringValuePipe } from './to-string-value.pipe' ;
2+
3+ describe ( 'ToStringValuePipe' , ( ) => {
4+ it ( 'create an instance' , ( ) => {
5+ const pipe = new ToStringValuePipe ( ) ;
6+ expect ( pipe ) . toBeTruthy ( ) ;
7+ } ) ;
8+ } ) ;
Original file line number Diff line number Diff line change 1+ import { Pipe , PipeTransform } from '@angular/core' ;
2+
3+ @Pipe ( {
4+ name : 'ToStringValue' ,
5+ pure : true ,
6+ } )
7+ export class ToStringValuePipe implements PipeTransform {
8+ transform ( value : unknown ) : string {
9+ return value as string ;
10+ }
11+ }
You can’t perform that action at this time.
0 commit comments