Skip to content

Instantly share code, notes, and snippets.

@izqui izqui/fix_test.js
Created Mar 14, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.