UNPKG

@sphereon/oid4vci-common

Version:

OpenID 4 Verifiable Credential Issuance Common Types

16 lines (13 loc) 360 B
import { randomBytes } from '../functions'; import { UNIT_TEST_TIMEOUT } from './CredentialOfferUtil.spec'; describe('randomBytes should', () => { it( 'generate random bytes of length 32', () => { const bytes = randomBytes(32); expect(bytes).toBeDefined(); expect(bytes.length).toEqual(32); }, UNIT_TEST_TIMEOUT, ); });