Skip to content

Commit 676b6c2

Browse files
committed
test(runtime): update auth fallback fixture for confirmation context
1 parent 4f59ca5 commit 676b6c2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/runtime/tests/auth-profile-fallback.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
resolveModelBaseUrl,
1313
writeConfigFile,
1414
type CommandPackManager,
15+
type LocalizedText,
1516
type SourceFlags,
1617
} from "bailian-cli-core";
1718
import { authStage, type RunContext } from "../src/middleware.ts";
@@ -56,6 +57,8 @@ function makeContext(
5657
path,
5758
command,
5859
flags: {},
60+
confirmed: false,
61+
localize: (text: LocalizedText) => (typeof text === "string" ? text : text["en-US"]),
5962
settings,
6063
sources,
6164
configStore: makeConfigStore(sources.configName),

0 commit comments

Comments
 (0)