File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
projects/igniteui-angular/src/lib/combo Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1046,6 +1046,10 @@ describe('igxCombo', () => {
1046
1046
const combo = fix . componentInstance . combo ;
1047
1047
spyOn ( combo . onSelectionChange , 'emit' ) ;
1048
1048
let oldSelection = [ ] ;
1049
+ /**
1050
+ * The test component has a defined `valueKey` property.
1051
+ * `selectItems` method should be called with the items' corresponding valueKeys
1052
+ */
1049
1053
let newSelection = [ combo . data [ 1 ] , combo . data [ 5 ] , combo . data [ 6 ] ] ;
1050
1054
let newSelectionKeys = newSelection . map ( entry => entry [ combo . valueKey ] ) ;
1051
1055
@@ -3454,7 +3458,12 @@ class IgxComboScrollTestComponent {
3454
3458
`
3455
3459
} )
3456
3460
class IgxComboSampleComponent {
3457
-
3461
+ /**
3462
+ * TODO
3463
+ * Test that use this component should properly call `selectItems` method
3464
+ * IF a `valueKey` is defined, calls should be w/ the items' valueKey property value
3465
+ * IF no `valueKey` is defined, calls should be w/ object references to the items
3466
+ */
3458
3467
@ViewChild ( 'combo' , { read : IgxComboComponent , static : true } )
3459
3468
public combo : IgxComboComponent ;
3460
3469
You can’t perform that action at this time.
0 commit comments