Created
December 12, 2017 01:15
-
-
Save bpolania/d727b633c284aa38957cb69da8018a06 to your computer and use it in GitHub Desktop.
This file contains 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”, 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