Fix provider-selection test for synthetic default row
The selector rework now synthesizes a "Default" row for ready enabled providers without explicit models, so they share the same `kind: "models"` shape as providers with real models. Updated the stale assertion that still expected the old `providerDefault` kind.
This commit is contained in:
@@ -68,7 +68,7 @@ describe("combined model selector data", () => {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("represents ready enabled providers without explicit models as provider-default selection", () => {
|
it("synthesizes a default model row for ready enabled providers without explicit models", () => {
|
||||||
expect(
|
expect(
|
||||||
buildSelectableProviderSelectorProviders([
|
buildSelectableProviderSelectorProviders([
|
||||||
snapshotEntry({
|
snapshotEntry({
|
||||||
@@ -81,7 +81,20 @@ describe("combined model selector data", () => {
|
|||||||
{
|
{
|
||||||
id: "deepseek-tui",
|
id: "deepseek-tui",
|
||||||
label: "DeepSeek TUI",
|
label: "DeepSeek TUI",
|
||||||
modelSelection: { kind: "providerDefault", label: "Default" },
|
modelSelection: {
|
||||||
|
kind: "models",
|
||||||
|
rows: [
|
||||||
|
{
|
||||||
|
favoriteKey: "deepseek-tui:",
|
||||||
|
provider: "deepseek-tui",
|
||||||
|
providerLabel: "DeepSeek TUI",
|
||||||
|
modelId: "",
|
||||||
|
modelLabel: "Default",
|
||||||
|
description: undefined,
|
||||||
|
isDefault: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user