From bbbf33536c6c1a73fdfe76c42ff19cd08aabcc6f Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Mon, 13 Jan 2025 00:00:30 +0000 Subject: fix: Fix url matcher not matching sourceUrl. Fixes #874 --- packages/trpc/lib/__tests__/search.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/trpc/lib/__tests__/search.test.ts') diff --git a/packages/trpc/lib/__tests__/search.test.ts b/packages/trpc/lib/__tests__/search.test.ts index 8a6f1949..7f573b4f 100644 --- a/packages/trpc/lib/__tests__/search.test.ts +++ b/packages/trpc/lib/__tests__/search.test.ts @@ -111,6 +111,7 @@ beforeEach(async () => { assetType: "image", fileName: "test.png", assetId: "asset-id", + sourceUrl: "https://example.com/image.png", }, ]); @@ -236,7 +237,7 @@ describe("getBookmarkIdsFromMatcher", () => { inverse: false, }; const result = await getBookmarkIdsFromMatcher(mockCtx, matcher); - expect(result).toEqual(["b1", "b4"]); + expect(result).toEqual(["b1", "b4", "b6"]); }); it("should handle url matcher with inverse=true", async () => { -- cgit v1.2.3-70-g09d2