import { BCRYPT_COST } from '../bcrypt-cost';

describe('BCRYPT_COST', () => {
    it('meets the 2026 baseline cost factor (>= 12)', () => {
        expect(BCRYPT_COST).toBeGreaterThanOrEqual(12);
    });

    it('is an integer in the valid bcrypt cost range (4-31)', () => {
        expect(Number.isInteger(BCRYPT_COST)).toBe(true);
        expect(BCRYPT_COST).toBeGreaterThanOrEqual(4);
        expect(BCRYPT_COST).toBeLessThanOrEqual(31);
    });
});
