Skip to content

Instantly share code, notes, and snippets.

@mattlockyer
Created June 6, 2018 20:10
Show Gist options
  • Save mattlockyer/48deaeafabc267417c97d62256ee839b to your computer and use it in GitHub Desktop.
Save mattlockyer/48deaeafabc267417c97d62256ee839b to your computer and use it in GitHub Desktop.
Test Runner for HelloMarket.sol / HelloMarketToken.sol (empty)
//jshint ignore: start
// contracts
const contracts = [
{ name: 'HelloMarket' }
];
contracts.forEach(c => c.artifact = artifacts.require('./' + c.name + '.sol'))
/**************************************
* Tests
**************************************/
contract('HelloMarket', function(accounts) {
let helloMarket,
alice = accounts[0],
bob = accounts[1];
it('should be deployed, HelloMarket', async () => {
helloMarket = await contracts[0].artifact.deployed();
assert(helloMarket.address !== undefined, contracts[0].name + ' was not deployed');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment