Skip to content

Commit d3ab0ea

Browse files
Update pkg/inventory/registry_test.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 32fb743 commit d3ab0ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/inventory/registry_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,10 +2045,11 @@ func TestStripMetaKeys(t *testing.T) {
20452045
expectedMeta: map[string]any{"description": "kept"},
20462046
},
20472047
{
2048-
name: "ui is nil value - no change (nil value means key not present)",
2048+
name: "ui is nil value - ui stripped",
20492049
meta: map[string]any{"ui": nil, "description": "kept"},
20502050
keys: mcpAppsMetaKeys,
2051-
expectChange: false,
2051+
expectChange: true,
2052+
expectedMeta: map[string]any{"description": "kept"},
20522053
},
20532054
{
20542055
name: "empty keys list - no change",

0 commit comments

Comments
 (0)