Merge branch 'test-coverage'
Some checks failed
CI / ci (push) Has been cancelled

Add test utilities and ast-grep rules for code quality.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
igm
2026-01-12 15:05:07 +08:00
38 changed files with 247 additions and 172 deletions

View File

@@ -63,7 +63,7 @@ export const hashPassword = async (password: string): Promise<string> => {
const saltB64 = toBase64(salt.buffer);
const hashB64 = toBase64(derivedBits);
return `$${ALGORITHM}$${String(ITERATIONS)}$${saltB64}$${hashB64}`;
return `$${ALGORITHM}$${ITERATIONS.toString()}$${saltB64}$${hashB64}`;
};
export const verifyPassword = async (