File tree 1 file changed +26
-0
lines changed
packages/core/test/specs/data_sources/model/collection_component
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -590,6 +590,29 @@ describe('Collection component', () => {
590
590
type : CollectionVariableType ,
591
591
variable_type : variableType ,
592
592
} ,
593
+ attributes : {
594
+ custom_attribute : {
595
+ type : CollectionVariableType ,
596
+ variable_type : variableType ,
597
+ } ,
598
+ } ,
599
+ traits : [
600
+ {
601
+ name : 'attribute_trait' ,
602
+ value : {
603
+ type : CollectionVariableType ,
604
+ variable_type : variableType ,
605
+ } ,
606
+ } ,
607
+ {
608
+ name : 'property_trait' ,
609
+ changeProp : true ,
610
+ value : {
611
+ type : CollectionVariableType ,
612
+ variable_type : variableType ,
613
+ } ,
614
+ } ,
615
+ ] ,
593
616
} ,
594
617
config : {
595
618
dataSource : {
@@ -605,6 +628,9 @@ describe('Collection component', () => {
605
628
606
629
children . each ( ( child , index ) => {
607
630
expect ( child . get ( 'content' ) ) . toBe ( expectedValues [ index ] ) ;
631
+ expect ( child . get ( 'property_trait' ) ) . toBe ( expectedValues [ index ] ) ;
632
+ expect ( child . getAttributes ( ) [ 'custom_attribute' ] ) . toBe ( expectedValues [ index ] ) ;
633
+ expect ( child . getAttributes ( ) [ 'attribute_trait' ] ) . toBe ( expectedValues [ index ] ) ;
608
634
} ) ;
609
635
} ) ;
610
636
} ) ;
You can’t perform that action at this time.
0 commit comments