* Changed before for beforeAll, refactored Bouncer tests. * Fixed linter errors. * fix: updates for SignatureBouncer tests and voucher construction
19 lines
466 B
JavaScript
19 lines
466 B
JavaScript
const ERC20WithMetadata = artifacts.require('ERC20WithMetadataMock');
|
|
|
|
require('chai')
|
|
.use(require('chai-as-promised'))
|
|
.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 () {
|
|
const got = await this.token.tokenURI();
|
|
got.should.eq(metadataURI);
|
|
});
|
|
});
|