Hot answers tagged

1

it('should not generate the hash for same reference number', async()=>{ actions.generateHash.call(100, '123', {from: accounts[0]}); await assertLib.reverts(actions.generateHash.call(100, '123', {from: accounts[0]})); }); In the above test statement you have specified generatehash.call() .call is used to read state ...


Only top voted, non community-wiki answers of a minimum length are eligible