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.
21 lines
591 B
21 lines
591 B
4 years ago
|
const {
|
||
|
shouldBehaveLikeERC721,
|
||
|
shouldBehaveLikeERC721Metadata,
|
||
|
shouldBehaveLikeERC721Enumerable,
|
||
|
} = require('./ERC721.behavior');
|
||
|
|
||
|
const ERC721Mock = artifacts.require('ERC721EnumerableMock');
|
||
|
|
||
|
contract('ERC721Enumerable', function (accounts) {
|
||
|
const name = 'Non Fungible Token';
|
||
|
const symbol = 'NFT';
|
||
|
|
||
|
beforeEach(async function () {
|
||
|
this.token = await ERC721Mock.new(name, symbol);
|
||
|
});
|
||
|
|
||
|
shouldBehaveLikeERC721('ERC721', ...accounts);
|
||
|
shouldBehaveLikeERC721Metadata('ERC721', name, symbol, ...accounts);
|
||
|
shouldBehaveLikeERC721Enumerable('ERC721', ...accounts);
|
||
|
});
|