ETH_PROJET/test/hello_eth_salon.js

9 lines
361 B
JavaScript
Raw Normal View History

2018-02-01 11:52:53 +01:00
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!!");
});
});