aboutsummaryrefslogtreecommitdiffstats
path: root/packages/trpc/lib/__tests__
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-01-02 13:00:58 +0200
committerGitHub <noreply@github.com>2025-01-02 13:00:58 +0200
commit5ecdc36b7d60aa66b49e01e9fec8ba61ad537376 (patch)
tree57577822bb104b95900ba577a265fb4f8cf70b78 /packages/trpc/lib/__tests__
parent5df0258b2cd884347eabfa866d7e7fbc7225cdb3 (diff)
downloadkarakeep-5ecdc36b7d60aa66b49e01e9fec8ba61ad537376.tar.zst
feat: Add support for smart lists (#802)
* feat: Add support for smart lists * i18n * Fix update list endpoint * Add a test for smart lists * Add header to the query explainer * Hide remove from lists in the smart context list * Add proper validation to list form --------- Co-authored-by: Deepak Kapoor <41769111+orthdron@users.noreply.github.com>
Diffstat (limited to 'packages/trpc/lib/__tests__')
-rw-r--r--packages/trpc/lib/__tests__/search.test.ts14
1 files changed, 10 insertions, 4 deletions
diff --git a/packages/trpc/lib/__tests__/search.test.ts b/packages/trpc/lib/__tests__/search.test.ts
index bf32bcb1..468aef83 100644
--- a/packages/trpc/lib/__tests__/search.test.ts
+++ b/packages/trpc/lib/__tests__/search.test.ts
@@ -130,10 +130,16 @@ beforeEach(async () => {
]);
await db.insert(bookmarkLists).values([
- { id: "l1", userId: testUserId, name: "list1", icon: "🚀" },
- { id: "l2", userId: testUserId, name: "list2", icon: "🚀" },
- { id: "l3", userId: testUserId, name: "favorites", icon: "⭐" },
- { id: "l4", userId: testUserId, name: "work", icon: "💼" },
+ { id: "l1", userId: testUserId, name: "list1", icon: "🚀", type: "manual" },
+ { id: "l2", userId: testUserId, name: "list2", icon: "🚀", type: "manual" },
+ {
+ id: "l3",
+ userId: testUserId,
+ name: "favorites",
+ icon: "⭐",
+ type: "manual",
+ },
+ { id: "l4", userId: testUserId, name: "work", icon: "💼", type: "manual" },
]);
await db.insert(bookmarksInLists).values([