import { User , } from '../' ; import { StateLeaf , } from 'maci-domainobjs' ; import { IncrementalQuinTree , } from 'maci-crypto' ; describe ( 'User' , ( ) => { it ( 'A blankUser should match a blank state leaf' , async ( ) => { const depth = 4 ; const tree = new IncrementalQuinTree ( 4 , BigInt ( 0 ) ) ; const user = User . genBlankUser ( 4 ) ; const stateLeaf = StateLeaf . genBlankLeaf ( tree . root ) ; expect ( stateLeaf . hash ( ) . toString ( ) ) . toEqual ( user . genStateLeaf ( depth ) . hash ( ) . toString ( ) ) ; } ) ; } ) ;