Default truffle test snippet
var MetaCoin = artifacts.require("./MetaCoin.sol");
// ... more code
contract('MetaCoin', function(accounts) {
it("should put 10000 MetaCoin in the first account", async function() {
let meta = await MetaCoin.deployed();
let balance = await meta.getBalance.call(accounts[0]);
assert.equal(balance.valueOf(), 10000, "10000 wasn't in the first account")
});
// ... more code
})