ERC721Mintable.test.js 598 B

123456789101112131415161718192021
  1. const { shouldBehaveLikeERC721 } = require('./ERC721.behavior');
  2. const {
  3. shouldBehaveLikeMintAndBurnERC721,
  4. } = require('./ERC721MintBurn.behavior');
  5. const ERC721MintableImpl = artifacts.require('ERC721MintableBurnableImpl.sol');
  6. require('../../helpers/setup');
  7. contract('ERC721Mintable', function ([_, creator, ...accounts]) {
  8. const minter = creator;
  9. beforeEach(async function () {
  10. this.token = await ERC721MintableImpl.new({
  11. from: creator,
  12. });
  13. });
  14. shouldBehaveLikeERC721(creator, minter, accounts);
  15. shouldBehaveLikeMintAndBurnERC721(creator, minter, accounts);
  16. });