test: clarify plugin snapshot stale index assertions

This commit is contained in:
Peter Steinberger
2026-05-08 09:26:03 +01:00
parent 973adb0fe1
commit eff631e269
2 changed files with 2 additions and 2 deletions

View File

@@ -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({

View File

@@ -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({