This commit is contained in:
Makoto Inoue
2016-10-22 18:29:07 +01:00
parent 8e7c7d54b1
commit 48badda96f
4 changed files with 10 additions and 10 deletions

View File

@ -1,10 +1,10 @@
contract('Bounty', function(accounts) {
it("can call checkInvarient for InsecureTargetMock", function(done){
it("can call checkInvariant for InsecureTargetMock", function(done){
var bounty = Bounty.deployed();
var target = SecureTargetMock.deployed();
bounty.createTarget(target.address).
then(function() {
return bounty.checkInvarient.call()
return bounty.checkInvariant.call()
}).
then(function(result) {
assert.isTrue(result);
@ -12,12 +12,12 @@ contract('Bounty', function(accounts) {
then(done);
})
it("can call checkInvarient for InsecureTargetMock", function(done){
it("can call checkInvariant for InsecureTargetMock", function(done){
var bounty = Bounty.deployed();
var target = InsecureTargetMock.deployed();
bounty.createTarget(target.address).
then(function() {
return bounty.checkInvarient.call()
return bounty.checkInvariant.call()
}).
then(function(result) {
assert.isFalse(result);