ERC721Mintable.test.js 600 B

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