import { toMnemonic } from './toMnemonic' ; import { wallet } from '@sidetree/test-vectors' ; it ( 'can generate a mnemonic' , async ( ) => { const content = await toMnemonic ( ) ; expect ( content . type ) . toBe ( wallet . mnemonic [ 0 ] . content . type ) ; expect ( content . name ) . toBe ( wallet . mnemonic [ 0 ] . content . name ) ; expect ( content . image ) . toBe ( wallet . mnemonic [ 0 ] . content . image ) ; expect ( content . description ) . toBe ( wallet . mnemonic [ 0 ] . content . description ) ; } ) ; it ( 'can generate a mnemonic from a value' , async ( ) => { const content = await toMnemonic ( wallet . mnemonic [ 0 ] . mnemonic ) ; expect ( content ) . toEqual ( wallet . mnemonic [ 0 ] . content ) ; } ) ;