aletheia-foundation / aletheia-app

Alethia peer to peer publishing platform
http://aletheia-foundation.io/
GNU General Public License v3.0
48 stars 11 forks source link

Enable Testing for Throws with Helper Function #66

Closed cchrs closed 7 years ago

cchrs commented 7 years ago

I confirm:


Making an enhancement - ignore this if not making an enhancement

cchrs commented 7 years ago

Hi, before starting with something real, I had the feeling that there is the need to test easily for throws. I found this functionaly in the openZepplin project which offer also some other interesting functions. Is it ok to use code from other open-source projects like openZepplin? https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/test/helpers/expectThrow.js I think they are under MIT license. I also changed the test file of SubmittedPaperIndex to async/await syntax, hope this is fine. Just let me know if this is ok.