Last active
August 10, 2017 23:10
-
-
Save sogoiii/db669ad19e1c3ab2b6470e5a3e1e3ac7 to your computer and use it in GitHub Desktop.
Truffle test snippet 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it("should fail because function does not exist on contract", async function () { | |
let meta = await MetaCoin.deployed(); | |
try { | |
await meta.someNonExistentFn.call(); | |
} catch (e) { | |
return true; | |
} | |
throw new Error("I should never see this!") | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment