test(plugins): align install ledger mocks

This commit is contained in:
Peter Steinberger
2026-04-25 19:52:11 +01:00
parent c410e48382
commit 690c98ad99
2 changed files with 4 additions and 2 deletions

View File

@@ -290,7 +290,7 @@ describe("plugins cli install", () => {
expect(writeConfigFile).not.toHaveBeenCalled();
});
it("installs marketplace plugins and persists config", async () => {
it("installs marketplace plugins and persists install ledger", async () => {
const cfg = {
plugins: {
entries: {},
@@ -388,6 +388,7 @@ describe("plugins cli install", () => {
demo: expect.objectContaining({
source: "clawhub",
spec: "clawhub:demo@1.2.3",
installPath: cliInstallPath("demo"),
clawhubPackage: "demo",
clawhubFamily: "code-plugin",
clawhubChannel: "official",
@@ -467,6 +468,7 @@ describe("plugins cli install", () => {
demo: expect.objectContaining({
source: "clawhub",
spec: "clawhub:demo@1.2.3",
installPath: cliInstallPath("demo"),
clawhubPackage: "demo",
}),
});

View File

@@ -123,7 +123,7 @@ describe("plugin install ledger store", () => {
});
it("updates and removes records without mutating caller state", async () => {
const records = {
const records: Record<string, PluginInstallRecord> = {
keep: {
source: "npm",
spec: "keep@1.0.0",