From eff631e269d0a0e3dec7cf1c80bbcad3b4c4e8ee Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 8 May 2026 09:26:03 +0100 Subject: [PATCH] test: clarify plugin snapshot stale index assertions --- src/plugins/plugin-registry-snapshot.test.ts | 2 +- src/plugins/status.registry-snapshot.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/plugin-registry-snapshot.test.ts b/src/plugins/plugin-registry-snapshot.test.ts index f7d67ddf925..8a09321d844 100644 --- a/src/plugins/plugin-registry-snapshot.test.ts +++ b/src/plugins/plugin-registry-snapshot.test.ts @@ -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({ diff --git a/src/plugins/status.registry-snapshot.test.ts b/src/plugins/status.registry-snapshot.test.ts index 8a91a13f8d4..a4396fba4a1 100644 --- a/src/plugins/status.registry-snapshot.test.ts +++ b/src/plugins/status.registry-snapshot.test.ts @@ -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({