mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 17:20:43 +00:00
test: clarify plugin snapshot stale index assertions
This commit is contained in:
@@ -95,7 +95,7 @@ describe("loadPluginRegistrySnapshotWithMetadata", () => {
|
||||
stateDir,
|
||||
installRecords: {},
|
||||
});
|
||||
expect(staleIndex.plugins.some((plugin) => plugin.pluginId === "whatsapp")).toBe(false);
|
||||
expect(staleIndex.plugins.map((plugin) => plugin.pluginId)).not.toContain("whatsapp");
|
||||
writePersistedInstalledPluginIndexSync(staleIndex, { stateDir });
|
||||
|
||||
const result = loadPluginRegistrySnapshotWithMetadata({
|
||||
|
||||
@@ -55,7 +55,7 @@ describe("buildPluginRegistrySnapshotReport", () => {
|
||||
env,
|
||||
installRecords: {},
|
||||
});
|
||||
expect(staleIndex.plugins.some((plugin) => plugin.pluginId === "whatsapp")).toBe(false);
|
||||
expect(staleIndex.plugins.map((plugin) => plugin.pluginId)).not.toContain("whatsapp");
|
||||
writePersistedInstalledPluginIndexSync(staleIndex, { stateDir });
|
||||
|
||||
const report = buildPluginRegistrySnapshotReport({
|
||||
|
||||
Reference in New Issue
Block a user