-
-
Save tcichowicz/37027ec28e96c11eb392bc80b6dcb3a2 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
const EspeoTokenIco = artifacts.require('./EspeoTokenIco.sol'); | |
contract('EspeoTokenIco', accounts => { | |
it('should have initial supply of 1,000,000 units assigned to funds wallet', async () => { | |
const fundsWallet = accounts[1]; | |
const espeoToken = await EspeoTokenIco.new(fundsWallet); | |
const expectedSupply = 1000000 * Math.pow(10, 18); | |
const totalSupply = await espeoToken.totalSupply(); | |
assert.equal(totalSupply, expectedSupply, 'Total supply mismatch'); | |
const fundsWalletBalance = await espeoToken.balanceOf(fundsWallet); | |
assert.equal(fundsWalletBalance.toNumber(), expectedSupply, 'Initial funds wallet balance mismatch'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment