Skip to content

ymsaout/solidity-voting-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solidity voting app

units tests

  • My first check is for the inherited OpenZeppelin ownable contract
  • I created const values for the 10 accounts in my Ganache blockchain
  • I check my functions with the 3 espect (normal event revert)
  • the WorkflowStatus had to be changed all along the tests
  • for the last test (tally), I made 3 propositions (red, green and blue)

setup

# if not installed
npm install -g truffle
#then
npm install

run test

truffle test test/voting.test.js --network development
truffle test test/voting.test.js --network ropsten

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published