mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
test: drop an auth-guard helper nothing reads
This commit is contained in:
1 parent
0e0e661cf0
commit
4e0e3019ad
1 file changed
-5
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user