Skip to content

Instantly share code, notes, and snippets.

@izqui
Created March 14, 2017 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save izqui/7b3b5bb3664da5597b449e9d554746dd to your computer and use it in GitHub Desktop.
Save izqui/7b3b5bb3664da5597b449e9d554746dd to your computer and use it in GitHub Desktop.
it('fixes', () => {
return BrokenContract.new()
.then(c => {
contract = c
return contract.broken()
})
.then(broken => {
assert.equal(broken, true)
return contract.executeCode(Fixer.binary)
})
.then(() => contract.broken())
.then(broken => assert.equal(broken, false))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment