Migrate configuration and command tests to native inspection
This commit is contained in:
@@ -54,7 +54,11 @@ func TestNativeLoadUsesOptionalCompanionsAndStrictPeers(t *testing.T) {
|
||||
t.Fatal("embedded collection missing")
|
||||
}
|
||||
if test.name == "recursive" {
|
||||
if len(result.Config.PromptKit.Profiles) != 1 || result.Config.PromptKit.Profiles[0].ID != "partial" {
|
||||
found := false
|
||||
for _, profile := range result.Config.PromptKit.Profiles {
|
||||
found = found || profile.ID == "partial"
|
||||
}
|
||||
if !found {
|
||||
t.Fatal("recursive companion not loaded")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user