mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-25 04:03:03 +00:00
test: spell out configure install records
This commit is contained in:
@@ -355,9 +355,11 @@ describe("runConfigureWizard", () => {
|
||||
await expect(runWebConfigureWizard()).resolves.toBeUndefined();
|
||||
|
||||
expect(mocks.note).toHaveBeenCalledWith(
|
||||
expect.stringContaining(
|
||||
[
|
||||
"No web search providers are currently available under this plugin policy.",
|
||||
),
|
||||
"Enable plugins or remove deny rules, then rerun configure.",
|
||||
"Docs: https://docs.openclaw.ai/tools/web",
|
||||
].join("\n"),
|
||||
"Web search",
|
||||
);
|
||||
expect(getWebSearch(requireWriteConfig()).enabled).toBe(false);
|
||||
|
||||
@@ -1179,7 +1179,18 @@ describe("ensureOnboardingPluginInstalled", () => {
|
||||
workspaceDir,
|
||||
});
|
||||
|
||||
expect(recordPluginInstall).toHaveBeenCalledWith(expect.anything(), {
|
||||
const [recordCfg, recordUpdate] = readFirstMockCall(
|
||||
recordPluginInstall,
|
||||
"recordPluginInstall",
|
||||
) as [OpenClawConfig, PluginInstallRecord];
|
||||
expect(recordCfg).toEqual({
|
||||
plugins: {
|
||||
load: {
|
||||
paths: [realPluginDir],
|
||||
},
|
||||
},
|
||||
});
|
||||
expect(recordUpdate).toEqual({
|
||||
pluginId: "demo-plugin",
|
||||
source: "path",
|
||||
sourcePath: "./plugins/demo",
|
||||
|
||||
Reference in New Issue
Block a user