Add bounty test to test against checkInvarient

This commit is contained in:
Makoto Inoue
2016-10-22 17:27:46 +01:00
parent 441e85d823
commit b5469310a1
2 changed files with 18 additions and 0 deletions

14
test/Bounty.js Normal file
View File

@ -0,0 +1,14 @@
contract('Bounty', function(accounts) {
it.only("create target", function(done){
var bounty = Bounty.deployed();
bounty.createTarget().
then(function() {
return bounty.checkInvarient.call()
}).
then(function(result) {
assert.isTrue(result);
}).
then(done);
})
});