ERC721Mintable.test.js 711 B

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