Bounty.js 323 B

1234567891011121314
  1. contract('Bounty', function(accounts) {
  2. it.only("create target", function(done){
  3. var bounty = Bounty.deployed();
  4. bounty.createTarget().
  5. then(function() {
  6. return bounty.checkInvarient.call()
  7. }).
  8. then(function(result) {
  9. assert.isTrue(result);
  10. }).
  11. then(done);
  12. })
  13. });