import { describe, it, expect } from 'vitest';
import { maskBsn } from './mask';

describe('maskBsn', () => {
  it('keeps the last 3 digits and masks the rest', () => {
    expect(maskBsn('123456789')).toBe('******789');
  });

  it('handles short and empty input without throwing', () => {
    expect(maskBsn('12')).toBe('**');
    expect(maskBsn('')).toBe('');
  });
});
