Add Unit Test

This commit is contained in:
MrDev023 2018-02-01 11:52:53 +01:00
parent 5286c07296
commit 3304c1a738
7 changed files with 44 additions and 14 deletions

9
test/hello_eth_salon.js Normal file
View file

@ -0,0 +1,9 @@
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!!");
});
});