mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 21:04:45 +00:00
test: dedupe auth choice install mock read
This commit is contained in:
@@ -461,7 +461,7 @@ describe("applyAuthChoiceLoadedPluginProvider", () => {
|
||||
const result = await applyAuthChoiceLoadedPluginProvider(buildParams());
|
||||
|
||||
expect(ensureOnboardingPluginInstalled).toHaveBeenCalledOnce();
|
||||
const [installParams] = ensureOnboardingPluginInstalled.mock.calls.at(0) ?? [];
|
||||
const [installParams] = ensureOnboardingPluginInstalled.mock.calls[0] ?? [];
|
||||
if (installParams === undefined) {
|
||||
throw new Error("expected plugin install params");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user