mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-18 13:57:52 -04:00
* 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
19 lines
396 B
TypeScript
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",
|
|
});
|
|
};
|