Created
June 6, 2018 20:10
-
-
Save mattlockyer/48deaeafabc267417c97d62256ee839b to your computer and use it in GitHub Desktop.
Test Runner for HelloMarket.sol / HelloMarketToken.sol (empty)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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