Skip to content

Instantly share code, notes, and snippets.

@bpolania
Created December 12, 2017 01:15
Show Gist options
  • Save bpolania/d727b633c284aa38957cb69da8018a06 to your computer and use it in GitHub Desktop.
Save bpolania/d727b633c284aa38957cb69da8018a06 to your computer and use it in GitHub Desktop.
var HelloEthSalon = artifacts.require('./HelloEthSalon.sol');
contract(‘HelloEthSalon:GetMessage’, function(accounts) {
it(“should return a correct string”, function(done) {
var hello_eth_salon = HelloEthSalon.deployed();
hello_eth_salon.then(function(contract){
return contract.GetMessage.call(); // **IMPORTANT
}).then(function(result){
assert.isTrue(result === ‘Hello Ethereum Salon!’);
done();
})
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment