1import {expect} from 'chai';2import {createEthAccountWithBalance, deployFlipper, itWeb3, contractHelpers} from './util/helpers';34describe('Helpers sanity check', () => {5 itWeb3('Contract owner is recorded', async ({api, web3}) => {6 const owner = await createEthAccountWithBalance(api, web3);78 const flipper = await deployFlipper(web3, owner);910 expect(await contractHelpers(web3, owner).methods.contractOwner(flipper.options.address).call()).to.be.equal(owner);11 });1213 itWeb3('Flipper is working', async ({api, web3}) => {14 const owner = await createEthAccountWithBalance(api, web3);15 const flipper = await deployFlipper(web3, owner);1617 expect(await flipper.methods.getValue().call()).to.be.false;18 await flipper.methods.flip().send({from: owner});19 expect(await flipper.methods.getValue().call()).to.be.true;20 });21});