Hot answers tagged

1

No, it is not possible to test them since you can't deploy abstract contracts. Therefore, you need to write a contract that inherits it, using the keyword "is" and implements all abstract methods. Then, you can use this contract to do actual testing.


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