* Add Mock suffix to variable names #1172
* Add Impl suffix to variable names
(cherry picked from commit 4b21fcf5af)
25 lines
674 B
JavaScript
25 lines
674 B
JavaScript
const { shouldBehaveLikeERC721 } = require('./ERC721.behavior');
|
|
const {
|
|
shouldBehaveLikeMintAndBurnERC721,
|
|
} = require('./ERC721MintBurn.behavior');
|
|
|
|
const BigNumber = web3.BigNumber;
|
|
const ERC721MintableImpl = artifacts.require('ERC721MintableBurnableImpl.sol');
|
|
|
|
require('chai')
|
|
.use(require('chai-bignumber')(BigNumber))
|
|
.should();
|
|
|
|
contract('ERC721Mintable', function ([_, creator, ...accounts]) {
|
|
const minter = creator;
|
|
|
|
beforeEach(async function () {
|
|
this.token = await ERC721MintableImpl.new({
|
|
from: creator,
|
|
});
|
|
});
|
|
|
|
shouldBehaveLikeERC721(creator, minter, accounts);
|
|
shouldBehaveLikeMintAndBurnERC721(creator, minter, accounts);
|
|
});
|