Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

3.6 KB
Raw Blame
bun test v1.3.14 (0d9b296a)

apps/desktop/src/main/backup-manager.test.mjs:
(pass) publishes only completed jobs, retains registered files and isolates account changes [20.96ms]
(pass) failure and cancellation preserve success and never rotate; credentials stay out of config [19.26ms]
(pass) basic_text cannot persist a password and a one-time encrypted run never downgrades [4.39ms]
(pass) scheduled failures wait one hour while manual retries remain immediate [8.52ms]
(pass) interrupted publication is verified before success and only registered staging is cleaned [7.31ms]
(pass) a context switch while preparing a job cannot launch it with the old credentials [3.82ms]
(pass) the existing local workspace can back up when instance authentication is disabled [5.22ms]
(pass) temporarily unavailable secure storage pauses encrypted work without plaintext fallback [5.47ms]
(pass) unreadable backup settings do not block account readiness or overwrite recovery records [2.29ms]
(pass) a missing renderer cannot fail or strand the background job [5.24ms]
(pass) the default backup set survives restart before the first backup [2.56ms]
(pass) a failed completion journal preserves the previous success and leaves a recoverable publication [8.43ms]
(pass) an account transition rejects queued actions from the previous ready context [3.99ms]
(pass) a successfully disabled schedule cannot start a queued automatic run [4.50ms]
(pass) pending encrypted publication accepts its original password (rotated saved password) [10.57ms]
(pass) pending encrypted publication accepts its original password (unsaved one-time password) [9.21ms]
(pass) failed private staging cleanup keeps its registration until cleanup succeeds [6.47ms]
(pass) startup restores the saved backup account without a renderer [6.54ms]
(pass) logout cancels an unresolved startup session without restoring its account later [2.75ms]
(pass) failed part cleanup cannot be overwritten by the next backup [9.63ms]
(pass) part cleanup never follows a replaced backup root [6.45ms]
(pass) pending verification preserves external parts when its root was replaced [6.78ms]
(pass) publication cannot rename an external part through a replaced backup root [6.51ms]
(pass) import failure and successful retry preserve automatic-backup errors and history [13.66ms]
(pass) legacy decryption errors belong to import [5.92ms]
(pass) legacy decryption errors belong to pending backup verification [7.44ms]
(pass) preserves HTTP status and emits only redacted request diagnostics without affecting failure handling [4.39ms]
(pass) named manual backups preserve formats/settings and never overwrite a collision [13.69ms]
(pass) history restore/delete are scoped, reject replacements and remove only the selected file [9.85ms]
(pass) automatic no-change advances checks, not archive time/retention, and invalidates its baseline correctly [16.14ms]
(pass) restart retains the unchanged schedule and resolves an interrupted running check [9.47ms]
(pass) named publication recovery verifies the owned file (owned archive recovered) [11.50ms]
(pass) named publication recovery verifies the owned file (replacement rejected) [7.28ms]
(pass) retention preserves a newly published archive when a missing filename is reused as A [20.30ms]
(pass) retention preserves a newly published archive when a missing filename is reused as a [17.75ms]
(pass) a failed password/configuration commit preserves legacy credentials across restart and a later change invalidates the baseline [13.64ms]
(pass) a credential reference cannot escape the account private directory [1.79ms]

 37 pass
 0 fail
 211 expect() calls
Ran 37 tests across 1 file. [366.00ms]