Add Unit Test
This commit is contained in:
parent
5286c07296
commit
3304c1a738
7 changed files with 44 additions and 14 deletions
9
test/hello_eth_salon.js
Normal file
9
test/hello_eth_salon.js
Normal 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!!");
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue