Files
openzeppelin-contracts/test/proposals/ERC1046/TokenMetadata.test.js
Nicolás Venturo 4fb9bb7020 Minor test style improvements (#1219)
* Changed .eq to .equal

* Changed equal(bool) to .to.be.bool

* Changed be.bool to equal(bool), disallowed unused expressions.
2018-08-22 16:05:18 -03:00

17 lines
414 B
JavaScript

const ERC20WithMetadata = artifacts.require('ERC20WithMetadataMock');
require('chai')
.should();
const metadataURI = 'https://example.com';
describe('ERC20WithMetadata', function () {
beforeEach(async function () {
this.token = await ERC20WithMetadata.new(metadataURI);
});
it('responds with the metadata', async function () {
(await this.token.tokenURI()).should.equal(metadataURI);
});
});