Files
openzeppelin-contracts/test/proposals/ERC1046/TokenMetadata.test.js
Justus Perlwitz e6c15b34da Remove chai-as-promised (#1116)
* Test: Remove chai-as-promised calls

* Test/Helpers: expectThrow accepts optional message

* NPM: Remove chai-as-promised

* Contracts/DestructibleMock: Fix lint
2018-07-26 11:53:33 -03:00

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);
});
});