test: expect plugin install index records on refresh

This commit is contained in:
Shakker
2026-04-25 23:44:20 +01:00
parent dcf7f8f44c
commit 0a41fc3ef8

View File

@@ -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",
});
});