ERC20Detailed.test.js 714 B

12345678910111213141516171819202122232425
  1. require('../../helpers/setup');
  2. const ERC20DetailedMock = artifacts.require('ERC20DetailedMock');
  3. contract('ERC20Detailed', function () {
  4. const _name = 'My Detailed ERC20';
  5. const _symbol = 'MDT';
  6. const _decimals = 18;
  7. beforeEach(async function () {
  8. this.detailedERC20 = await ERC20DetailedMock.new(_name, _symbol, _decimals);
  9. });
  10. it('has a name', async function () {
  11. (await this.detailedERC20.name()).should.be.equal(_name);
  12. });
  13. it('has a symbol', async function () {
  14. (await this.detailedERC20.symbol()).should.be.equal(_symbol);
  15. });
  16. it('has an amount of decimals', async function () {
  17. (await this.detailedERC20.decimals()).should.be.bignumber.equal(_decimals);
  18. });
  19. });