mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:20:43 +00:00
test(plugins): align install ledger mocks
This commit is contained in:
@@ -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",
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user