test: drop an auth-guard helper nothing reads

This commit is contained in:
Marc-André Bombeck committed 2026-10-23 13:13:06 +02:00
1 parent 0e0e661cf0
commit 4e0e3019ad
1 file changed
-5
-5
View File
@@ -35,11 +35,6 @@ export function authGuardModules(): Array<[string, string]> {
) as Array<[string, string]>;
}
/** Paths (relative to `src/`) of the guard modules plus the wrapper. */
export function authLayerFiles(): string[] {
return [API_HANDLER, ...authGuardModules().map(([rel]) => rel)].sort();
}
function declares(text: string, name: string): boolean {
return new RegExp(`(^|\\n)(export )?(async )?function ${name}\\s*[(<]`).test(
text,