diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-01-13 00:00:30 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-01-13 00:00:30 +0000 |
| commit | bbbf33536c6c1a73fdfe76c42ff19cd08aabcc6f (patch) | |
| tree | 7a3360c682da1908e60e5747063ca68719e026fe /packages/trpc/lib/__tests__ | |
| parent | 38d403bcc26244e778a6e7a2f75ee39a9ec7ed27 (diff) | |
| download | karakeep-bbbf33536c6c1a73fdfe76c42ff19cd08aabcc6f.tar.zst | |
fix: Fix url matcher not matching sourceUrl. Fixes #874
Diffstat (limited to 'packages/trpc/lib/__tests__')
| -rw-r--r-- | packages/trpc/lib/__tests__/search.test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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 () => { |
