4 tests: single-chunk download, metadata-title fallback filename, multi-chunk stream (50-byte chunks to exercise the buffering/split logic without allocating 4 MiB), and thumbnail download. Tests encrypt payloads with sodium's secretstream push, serve them from a mock fetch, and verify the decrypted file on disk.
9.1 KiB
9.1 KiB