mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 06:06:10 +00:00
Merge remote-tracking branch 'origin/fix/backup-streaming' into integration/post-1385
# Conflicts: # CHANGELOG.md
This commit is contained in:
commit
405f0ebfd0
14 files changed
+1289
-227
No files matched your search
@@ -36,7 +36,12 @@ vi.mock("@/lib/db", () => ({
|
||||
toJson: <T>(value: T) => value,
|
||||
}));
|
||||
|
||||
vi.mock("@/lib/crypto", () => ({ decrypt: vi.fn(() => "{}") }));
|
||||
vi.mock("@/lib/crypto", () => ({
|
||||
decrypt: vi.fn(() => "{}"),
|
||||
// The envelope reader asks which stored shape it was handed first.
|
||||
isStreamCiphertext: () => false,
|
||||
decryptStream: vi.fn(),
|
||||
}));
|
||||
vi.mock("@/lib/crypto/note-cipher", () => ({ encryptNote: vi.fn() }));
|
||||
vi.mock("@/lib/validations/backup", () => ({
|
||||
parseBackupPayload: vi.fn(),
|
||||
|
||||
@@ -30,8 +30,12 @@ vi.mock("@/lib/db", () => ({
|
||||
}));
|
||||
|
||||
const decryptMock = vi.fn();
|
||||
// The envelope reader asks which of the stored shapes it was handed before it
|
||||
// decrypts anything, so a stub of this module has to answer that too.
|
||||
vi.mock("@/lib/crypto", () => ({
|
||||
decrypt: (...a: unknown[]) => decryptMock(...a),
|
||||
isStreamCiphertext: () => false,
|
||||
decryptStream: vi.fn(),
|
||||
}));
|
||||
|
||||
const parseMock = vi.fn();
|
||||
|
||||
Reference in new issue
Block a user