From 4a8b5b410b7aff1e4796ad754d5cd84ee4fca684 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 05:18:09 +0100 Subject: [PATCH] test: tighten channel catalog discovery assertions --- src/plugins/channel-catalog-registry.test.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/plugins/channel-catalog-registry.test.ts b/src/plugins/channel-catalog-registry.test.ts index 3f56379e438..dab58167f41 100644 --- a/src/plugins/channel-catalog-registry.test.ts +++ b/src/plugins/channel-catalog-registry.test.ts @@ -62,9 +62,10 @@ describe("listChannelCatalogEntries", () => { expect(loadRecordsSpy).toHaveBeenCalledTimes(1); expect(loadRecordsSpy).toHaveBeenCalledWith({ env: ENV }); expect(discoverSpy).toHaveBeenCalledTimes(1); - expect(discoverSpy.mock.calls[0][0]).toMatchObject({ + expect(discoverSpy.mock.calls[0]?.[0]).toStrictEqual({ env: ENV, installRecords: RECORDS, + workspaceDir: undefined, }); }); @@ -90,7 +91,11 @@ describe("listChannelCatalogEntries", () => { module.listChannelCatalogEntries({ env: ENV, installRecords: supplied }); expect(loadRecordsSpy).not.toHaveBeenCalled(); - expect(discoverSpy.mock.calls[0][0]).toMatchObject({ installRecords: supplied }); + expect(discoverSpy.mock.calls[0]?.[0]).toStrictEqual({ + env: ENV, + installRecords: supplied, + workspaceDir: undefined, + }); }); it("omits installRecords from discovery when the ledger is empty", async () => {