@@ -1303,25 +1303,21 @@ func TestLoader_HideAngularDeprecation(t *testing.T) {
13031303 cfg * config.Cfg
13041304 expHideAngularDeprecation bool
13051305 }{
1306- {name : `without "hide_angular_deprecation" setting` , cfg : & config.Cfg {
1307- AngularSupportEnabled : true ,
1308- PluginSettings : setting.PluginSettings {},
1309- Features : featuremgmt .WithFeatures (),
1310- }},
1311- {name : `with "hide_angular_deprecation" = true` , cfg : & config.Cfg {
1312- AngularSupportEnabled : true ,
1313- PluginSettings : setting.PluginSettings {
1314- "plugin-id" : map [string ]string {"hide_angular_deprecation" : "true" },
1315- },
1316- Features : featuremgmt .WithFeatures (),
1317- }},
1318- {name : `with "hide_angular_deprecation" = false` , cfg : & config.Cfg {
1319- AngularSupportEnabled : true ,
1320- PluginSettings : setting.PluginSettings {
1321- "plugin-id" : map [string ]string {"hide_angular_deprecation" : "false" },
1322- },
1323- Features : featuremgmt .WithFeatures (),
1324- }},
1306+ {name : "with plugin id in HideAngularDeprecation list" , cfg : & config.Cfg {
1307+ AngularSupportEnabled : true ,
1308+ HideAngularDeprecation : []string {"one-app" , "two-panel" , "test-datasource" , "three-datasource" },
1309+ Features : featuremgmt .WithFeatures (),
1310+ }, expHideAngularDeprecation : true },
1311+ {name : "without plugin id in HideAngularDeprecation list" , cfg : & config.Cfg {
1312+ AngularSupportEnabled : true ,
1313+ HideAngularDeprecation : []string {"one-app" , "two-panel" , "three-datasource" },
1314+ Features : featuremgmt .WithFeatures (),
1315+ }, expHideAngularDeprecation : false },
1316+ {name : "with empty HideAngularDeprecation" , cfg : & config.Cfg {
1317+ AngularSupportEnabled : true ,
1318+ HideAngularDeprecation : nil ,
1319+ Features : featuremgmt .WithFeatures (),
1320+ }, expHideAngularDeprecation : false },
13251321 } {
13261322 t .Run (tc .name , func (t * testing.T ) {
13271323 l := newLoaderWithOpts (t , tc .cfg , loaderDepOpts {
0 commit comments