You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
462 B
19 lines
462 B
7 years ago
|
const ERC20WithMetadata = artifacts.require('ERC20WithMetadataMock');
|
||
|
|
||
|
require('chai')
|
||
|
.use(require('chai-as-promised'))
|
||
|
.should();
|
||
|
|
||
|
const metadataURI = 'https://example.com';
|
||
|
|
||
|
describe('ERC20WithMetadata', function () {
|
||
|
before(async function () {
|
||
|
this.token = await ERC20WithMetadata.new(metadataURI);
|
||
|
});
|
||
|
|
||
|
it('responds with the metadata', async function () {
|
||
|
const got = await this.token.tokenURI();
|
||
|
got.should.eq(metadataURI);
|
||
|
});
|
||
|
});
|