import { verifyTotp } from './totp.util';

describe('verifyTotp', () => {
  it('accepts a known code and rejects invalid values', () => {
    expect(verifyTotp('JBSWY3DPEHPK3PXP', '282760', 0)).toBe(true);
    expect(verifyTotp('JBSWY3DPEHPK3PXP', '000000', 0)).toBe(false);
    expect(verifyTotp('not-base32!', '282760', 0)).toBe(false);
  });
});
