* Test: Remove chai-as-promised calls * Test/Helpers: expectThrow accepts optional message * NPM: Remove chai-as-promised * Contracts/DestructibleMock: Fix lint
18 lines
430 B
JavaScript
18 lines
430 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 () {
|
|
const got = await this.token.tokenURI();
|
|
got.should.eq(metadataURI);
|
|
});
|
|
});
|