import { DisputableVotingData } from '../../types' ; import { DisputableVotingConnectorTheGraph } from '../../../src' ; import { buildConnector , VOTING_APP_ADDRESS } from '../utils' ; describe ( 'DisputableVoting' , ( ) => { let connector ; beforeAll ( async ( ) => { connector = await buildConnector ( ) ; } ) ; afterAll ( async ( ) => { await connector . disconnect ( ) ; } ) ; describe ( 'data' , ( ) => { let disputableVoting ; beforeAll ( async ( ) => { disputableVoting = await connector . disputableVoting ( VOTING_APP_ADDRESS ) ; } ) ; test ( 'returns the disputable voting data' , ( ) => { expect ( disputableVoting . id ) . toBe ( VOTING_APP_ADDRESS ) ; expect ( disputableVoting . dao ) . toBe ( '0x51a41e43af0774565f0be5cebc50c693cc19e4ee' ) ; expect ( disputableVoting . token ) . toBe ( '0x9a8eab8a356b8af4fa6ea5be983539ce97a258fb' ) ; } ) ; } ) ; } ) ;