fix: import the behavior of the web

This commit is contained in:
2026-07-12 20:28:25 +07:00
parent 83e7863fd9
commit 69927775ed
17 changed files with 234 additions and 88 deletions
-2
View File
@@ -28,12 +28,10 @@ describe("DB SQLite layer — public API parity", () => {
const s = await sqliteDb.getSettings();
expect(s).toBeDefined();
expect(s.cloudEnabled).toBe(false);
expect(s.requireLogin).toBe(true);
const updated = await sqliteDb.updateSettings({ cloudEnabled: true, customField: "x" });
expect(updated.cloudEnabled).toBe(true);
expect(updated.customField).toBe("x");
expect(updated.requireLogin).toBe(true); // default preserved
const re = await sqliteDb.getSettings();
expect(re.cloudEnabled).toBe(true);