diff options
| author | xuatz <xzlow10@gmail.com> | 2025-06-02 04:01:26 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-01 20:01:26 +0100 |
| commit | 3afe1e21df6dcc0483e74e0db02d9d82af32ecea (patch) | |
| tree | 32208bf2de6fedae00aaeb4f7ca0d74a816b4764 /packages/trpc/routers/users.test.ts | |
| parent | 8784c73c112b5b87bcf48670401e3956464ea436 (diff) | |
| download | karakeep-3afe1e21df6dcc0483e74e0db02d9d82af32ecea.tar.zst | |
feat: add user customisable default archive display behaviour (#1505)
* fix typo
* implementation
* bug fix and refactoring
* Use nuqs for searchParam management
* remove the todo about the tests
* fix tests
---------
Co-authored-by: Mohamed Bassem <me@mbassem.com>
Diffstat (limited to 'packages/trpc/routers/users.test.ts')
| -rw-r--r-- | packages/trpc/routers/users.test.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/trpc/routers/users.test.ts b/packages/trpc/routers/users.test.ts index 3d2d164d..3fd939b1 100644 --- a/packages/trpc/routers/users.test.ts +++ b/packages/trpc/routers/users.test.ts @@ -111,6 +111,7 @@ describe("User Routes", () => { // The default settings expect(settings).toEqual({ bookmarkClickAction: "open_original_link", + archiveDisplayBehaviour: "show", }); // Update settings @@ -122,6 +123,7 @@ describe("User Routes", () => { const updatedSettings = await caller.users.settings(); expect(updatedSettings).toEqual({ bookmarkClickAction: "expand_bookmark_preview", + archiveDisplayBehaviour: "show", }); // Test invalid update (e.g., empty input, if schema enforces it) |
