Merge branch 'main' into codex/fix-tests-and-add-comments

This commit is contained in:
Thomas Brugman
2025-10-24 18:23:07 +02:00
committed by GitHub
2 changed files with 1 additions and 5 deletions

View File

@@ -122,10 +122,7 @@ describe("Auth Utils", () => {
test("should generate different hashes for same password", async () => {
// Hash twice in parallel so the test doesn't incur two full bcrypt rounds sequentially.
// Running them concurrently keeps the assertion meaningful while avoiding unnecessary timeouts.
const [hash1, hash2] = await Promise.all([
hashPassword(password),
hashPassword(password),
]);
const [hash1, hash2] = await Promise.all([hashPassword(password), hashPassword(password)]);
expect(hash1).not.toBe(hash2);
expect(await verifyPassword(password, hash1)).toBe(true);

View File

@@ -1,5 +1,4 @@
import { describe, expect, test } from "vitest";
import { getLanguageLabel } from "./utils";
describe("getLanguageLabel", () => {