Add bounty test to test against checkInvarient
This commit is contained in:
14
test/Bounty.js
Normal file
14
test/Bounty.js
Normal 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);
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user