mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:20:43 +00:00
test: expect plugin install index records on refresh
This commit is contained in:
@@ -56,6 +56,13 @@ describe("persistPluginInstall", () => {
|
||||
expect(writeConfigFile).toHaveBeenCalledWith(enabledConfig);
|
||||
expect(refreshPluginRegistry).toHaveBeenCalledWith({
|
||||
config: enabledConfig,
|
||||
installRecords: {
|
||||
alpha: expect.objectContaining({
|
||||
source: "npm",
|
||||
spec: "alpha@1.0.0",
|
||||
installPath: "/tmp/alpha",
|
||||
}),
|
||||
},
|
||||
reason: "source-changed",
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user