@@ -924,6 +924,8 @@ describe('component', () => {
924924
925925 describe ( 'reflectComponentType' , ( ) => {
926926 it ( 'should create an ComponentMirror for a standalone component' , ( ) => {
927+ function transformFn ( ) { }
928+
927929 @Component ( {
928930 selector : 'standalone-component' ,
929931 standalone : true ,
@@ -937,6 +939,7 @@ describe('component', () => {
937939 outputs : [ 'output-a' , 'output-b:output-alias-b' ] ,
938940 } )
939941 class StandaloneComponent {
942+ @Input ( { alias : 'input-alias-c' , transform : transformFn } ) inputC : unknown ;
940943 }
941944
942945 const mirror = reflectComponentType ( StandaloneComponent ) ! ;
@@ -946,7 +949,8 @@ describe('component', () => {
946949 expect ( mirror . isStandalone ) . toEqual ( true ) ;
947950 expect ( mirror . inputs ) . toEqual ( [
948951 { propName : 'input-a' , templateName : 'input-a' } ,
949- { propName : 'input-b' , templateName : 'input-alias-b' }
952+ { propName : 'input-b' , templateName : 'input-alias-b' } ,
953+ { propName : 'inputC' , templateName : 'input-alias-c' , transform : transformFn } ,
950954 ] ) ;
951955 expect ( mirror . outputs ) . toEqual ( [
952956 { propName : 'output-a' , templateName : 'output-a' } ,
@@ -958,6 +962,8 @@ describe('component', () => {
958962 } ) ;
959963
960964 it ( 'should create an ComponentMirror for a non-standalone component' , ( ) => {
965+ function transformFn ( ) { }
966+
961967 @Component ( {
962968 selector : 'non-standalone-component' ,
963969 template : `
@@ -970,6 +976,7 @@ describe('component', () => {
970976 outputs : [ 'output-a' , 'output-b:output-alias-b' ] ,
971977 } )
972978 class NonStandaloneComponent {
979+ @Input ( { alias : 'input-alias-c' , transform : transformFn } ) inputC : unknown ;
973980 }
974981
975982 const mirror = reflectComponentType ( NonStandaloneComponent ) ! ;
@@ -979,7 +986,8 @@ describe('component', () => {
979986 expect ( mirror . isStandalone ) . toEqual ( false ) ;
980987 expect ( mirror . inputs ) . toEqual ( [
981988 { propName : 'input-a' , templateName : 'input-a' } ,
982- { propName : 'input-b' , templateName : 'input-alias-b' }
989+ { propName : 'input-b' , templateName : 'input-alias-b' } ,
990+ { propName : 'inputC' , templateName : 'input-alias-c' , transform : transformFn } ,
983991 ] ) ;
984992 expect ( mirror . outputs ) . toEqual ( [
985993 { propName : 'output-a' , templateName : 'output-a' } ,
0 commit comments