Solidity test suite, with helper functions. Use with Truffle and Mocha!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Luiserebii dcb02937af Releasing initial decent-ish version 1 year ago
.gitattributes Adding .gitattributes 1 year ago
.gitignore Initial commit 1 year ago
LICENSE Adding LICENSE 1 year ago
README.md Adding badge 1 year ago
errors.js Adding README.md, bumping up version 1 year ago
index.js More fleshing out 1 year ago
package-lock.json Initial commit 1 year ago
package.json Adding README.md, bumping up version 1 year ago
sol-assert.js More fleshing out 1 year ago

README.md

solidity-test

npm version

A simple node module to aid smart contract development in testing contracts. Initially created due to the desire to modularize testing for reverts, now looking to expand into something more define.

Quick Example

const solidityTest = require('solidityTest');
const solAssert = new solidityTest.solAssert();

const notOwner = '0x00000000000000000000000000000000000';

//Within Mocha:

it('reverts transaction', async () => {
  
  await solAssert.revert(
    async () => {  
      someContract.functionOnlyOwnerCanCall().send({from: notOwner});
    }
  )
  
})