Files
zerobyte/app/test/helpers/restic.ts
Nico 61dc07b36b Controllers tests (#187)
* test: backups service

* refactor: create hono app in a separate file

To avoid side effects like db migration or startup scripts when testing

test(backups): add security tests to the backups controller

* ci: run typechecks, build and tests on PR

* test: controllers security tests

* chore: update lock file

* refactor: pr feedbacks
2025-12-19 19:25:21 +01:00

19 lines
396 B
TypeScript

export const generateBackupOutput = () => {
return JSON.stringify({
message_type: "summary",
files_new: 10,
files_changed: 5,
files_unmodified: 85,
dirs_new: 2,
dirs_changed: 1,
dirs_unmodified: 17,
data_blobs: 20,
tree_blobs: 5,
data_added: 1048576,
total_files_processed: 100,
total_bytes_processed: 2097152,
total_duration: 12.34,
snapshot_id: "abcd1234",
});
};