feat: add extensive test suite

This commit is contained in:
2026-08-30 11:33:53 +07:00 Unverified
parent 061cce00dc
commit 8359c7272e
131 changed files with 8717 additions and 2200 deletions
+7
View File
@@ -0,0 +1,7 @@
export async function listFilesService<T>(dependencies: {
adminCheck: () => Promise<unknown>;
list: () => Promise<T[]>;
}) {
if (!(await dependencies.adminCheck())) throw "Unauthorized";
return dependencies.list();
}