@@ -1008,12 +1008,13 @@ describe('common selectors', () => {
1008
1008
} ) ;
1009
1009
1010
1010
describe ( 'getPotentialHparamColumns' , ( ) => {
1011
- const expectedBooleanFlags = {
1011
+ const expectedCommonProperties = {
1012
1012
enabled : false ,
1013
1013
removable : true ,
1014
1014
sortable : true ,
1015
1015
movable : true ,
1016
1016
filterable : true ,
1017
+ tags : [ ] ,
1017
1018
} ;
1018
1019
1019
1020
it ( 'returns empty list when there are no experiments' , ( ) => {
@@ -1028,25 +1029,25 @@ describe('common selectors', () => {
1028
1029
type : ColumnHeaderType . HPARAM ,
1029
1030
name : 'conv_layers' ,
1030
1031
displayName : 'Conv Layers' ,
1031
- ...expectedBooleanFlags ,
1032
+ ...expectedCommonProperties ,
1032
1033
} ,
1033
1034
{
1034
1035
type : ColumnHeaderType . HPARAM ,
1035
1036
name : 'conv_kernel_size' ,
1036
1037
displayName : 'Conv Kernel Size' ,
1037
- ...expectedBooleanFlags ,
1038
+ ...expectedCommonProperties ,
1038
1039
} ,
1039
1040
{
1040
1041
type : ColumnHeaderType . HPARAM ,
1041
1042
name : 'dense_layers' ,
1042
1043
displayName : 'Dense Layers' ,
1043
- ...expectedBooleanFlags ,
1044
+ ...expectedCommonProperties ,
1044
1045
} ,
1045
1046
{
1046
1047
type : ColumnHeaderType . HPARAM ,
1047
1048
name : 'dropout' ,
1048
1049
displayName : 'Dropout' ,
1049
- ...expectedBooleanFlags ,
1050
+ ...expectedCommonProperties ,
1050
1051
} ,
1051
1052
] ) ;
1052
1053
} ) ;
@@ -1061,10 +1062,18 @@ describe('common selectors', () => {
1061
1062
type : ColumnHeaderType . HPARAM ,
1062
1063
name : 'conv_layers' ,
1063
1064
displayName : 'conv_layers' ,
1064
- ...expectedBooleanFlags ,
1065
+ ...expectedCommonProperties ,
1065
1066
} ,
1066
1067
] ) ;
1067
1068
} ) ;
1069
+
1070
+ it ( 'sets differs tag' , ( ) => {
1071
+ state . hparams ! . dashboardHparamSpecs = [ buildHparamSpec ( { differs : true } ) ] ;
1072
+
1073
+ expect ( selectors . getPotentialHparamColumns ( state ) [ 0 ] . tags ) . toEqual ( [
1074
+ 'differs' ,
1075
+ ] ) ;
1076
+ } ) ;
1068
1077
} ) ;
1069
1078
1070
1079
describe ( 'getSelectableColumns' , ( ) => {
0 commit comments