Last active
November 19, 2017 08:16
-
-
Save amazingandyyy/02ea2e82a24122eeaf0502f22191ca5d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var HelloEthSalon = artifacts.require("./HelloEthSalon.sol"); | |
contract("HelloEthSalon:GetMessage", function (accounts) { | |
it("should return a correct string", async function () { | |
const contract = await HelloEthSalon.deployed(); | |
const result = await contract.GetMessage.call(); | |
assert.isTrue(result === "I know smart contract testing!!"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
here is callback version (in my old tutorials)