import { crypto } from '@sidetree/test-vectors' ; import { writeFixture } from '../test/util' ; import { toMnemonic } from '..' ; import { wallet } from '@sidetree/test-vectors' ; const WRITE_FIXTURE_TO_DISK = false ; it ( 'can generate test fixture' , async ( ) => { const fixture = { mnemonic : [ ] } ; for ( let i = 0 ; i < crypto . mnemonic . mnemonic . length ; i ++ ) { const mnemonic = crypto . mnemonic . mnemonic [ i ] ; const content = await toMnemonic ( mnemonic ) ; fixture . mnemonic . push ( { mnemonic , content } ) ; } expect ( fixture . mnemonic ) . toEqual ( wallet . mnemonic ) ; if ( WRITE_FIXTURE_TO_DISK ) { writeFixture ( 'v1-mnemonic.json' , fixture ) ; } } ) ;