Renamed test/behavior to test/behaviors.
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"build",
|
"build",
|
||||||
"contracts",
|
"contracts",
|
||||||
"test/behavior"
|
"test/behaviors"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "scripts/build.sh",
|
"build": "scripts/build.sh",
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
const { shouldBehaveLikePublicRole } = require('../../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../../behaviors/access/roles/PublicRole.behavior');
|
||||||
const CapperRoleMock = artifacts.require('CapperRoleMock');
|
const CapperRoleMock = artifacts.require('CapperRoleMock');
|
||||||
|
|
||||||
contract('CapperRole', function ([_, capper, otherCapper, ...otherAccounts]) {
|
contract('CapperRole', function ([_, capper, otherCapper, ...otherAccounts]) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
const { shouldBehaveLikePublicRole } = require('../../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../../behaviors/access/roles/PublicRole.behavior');
|
||||||
const MinterRoleMock = artifacts.require('MinterRoleMock');
|
const MinterRoleMock = artifacts.require('MinterRoleMock');
|
||||||
|
|
||||||
contract('MinterRole', function ([_, minter, otherMinter, ...otherAccounts]) {
|
contract('MinterRole', function ([_, minter, otherMinter, ...otherAccounts]) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
const { shouldBehaveLikePublicRole } = require('../../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../../behaviors/access/roles/PublicRole.behavior');
|
||||||
const PauserRoleMock = artifacts.require('PauserRoleMock');
|
const PauserRoleMock = artifacts.require('PauserRoleMock');
|
||||||
|
|
||||||
contract('PauserRole', function ([_, pauser, otherPauser, ...otherAccounts]) {
|
contract('PauserRole', function ([_, pauser, otherPauser, ...otherAccounts]) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
const { shouldBehaveLikePublicRole } = require('../../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../../behaviors/access/roles/PublicRole.behavior');
|
||||||
const SignerRoleMock = artifacts.require('SignerRoleMock');
|
const SignerRoleMock = artifacts.require('SignerRoleMock');
|
||||||
|
|
||||||
contract('SignerRole', function ([_, signer, otherSigner, ...otherAccounts]) {
|
contract('SignerRole', function ([_, signer, otherSigner, ...otherAccounts]) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
const { shouldBehaveLikePublicRole } = require('../../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../../behaviors/access/roles/PublicRole.behavior');
|
||||||
const WhitelistAdminRoleMock = artifacts.require('WhitelistAdminRoleMock');
|
const WhitelistAdminRoleMock = artifacts.require('WhitelistAdminRoleMock');
|
||||||
|
|
||||||
contract('WhitelistAdminRole', function ([_, whitelistAdmin, otherWhitelistAdmin, ...otherAccounts]) {
|
contract('WhitelistAdminRole', function ([_, whitelistAdmin, otherWhitelistAdmin, ...otherAccounts]) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
const { shouldBehaveLikePublicRole } = require('../../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../../behaviors/access/roles/PublicRole.behavior');
|
||||||
const WhitelistedRoleMock = artifacts.require('WhitelistedRoleMock');
|
const WhitelistedRoleMock = artifacts.require('WhitelistedRoleMock');
|
||||||
|
|
||||||
contract('WhitelistedRole', function ([_, whitelisted, otherWhitelisted, whitelistAdmin, ...otherAccounts]) {
|
contract('WhitelistedRole', function ([_, whitelisted, otherWhitelisted, whitelistAdmin, ...otherAccounts]) {
|
||||||
|
|||||||
@ -2,7 +2,7 @@ const { BN, ether, shouldFail } = require('openzeppelin-test-helpers');
|
|||||||
|
|
||||||
const IndividuallyCappedCrowdsaleImpl = artifacts.require('IndividuallyCappedCrowdsaleImpl');
|
const IndividuallyCappedCrowdsaleImpl = artifacts.require('IndividuallyCappedCrowdsaleImpl');
|
||||||
const SimpleToken = artifacts.require('SimpleToken');
|
const SimpleToken = artifacts.require('SimpleToken');
|
||||||
const { shouldBehaveLikePublicRole } = require('../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../behaviors/access/roles/PublicRole.behavior');
|
||||||
|
|
||||||
contract('IndividuallyCappedCrowdsale', function (
|
contract('IndividuallyCappedCrowdsale', function (
|
||||||
[_, capper, otherCapper, wallet, alice, bob, charlie, anyone, ...otherAccounts]) {
|
[_, capper, otherCapper, wallet, alice, bob, charlie, anyone, ...otherAccounts]) {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
const { shouldFail } = require('openzeppelin-test-helpers');
|
const { shouldFail } = require('openzeppelin-test-helpers');
|
||||||
const { getSignFor } = require('../helpers/sign');
|
const { getSignFor } = require('../helpers/sign');
|
||||||
const { shouldBehaveLikePublicRole } = require('../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../behaviors/access/roles/PublicRole.behavior');
|
||||||
|
|
||||||
const SignatureBouncerMock = artifacts.require('SignatureBouncerMock');
|
const SignatureBouncerMock = artifacts.require('SignatureBouncerMock');
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
const { expectEvent, shouldFail } = require('openzeppelin-test-helpers');
|
const { expectEvent, shouldFail } = require('openzeppelin-test-helpers');
|
||||||
const { shouldBehaveLikePublicRole } = require('../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../behaviors/access/roles/PublicRole.behavior');
|
||||||
|
|
||||||
const PausableMock = artifacts.require('PausableMock');
|
const PausableMock = artifacts.require('PausableMock');
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
const { shouldBehaveLikeERC20Mintable } = require('./behaviors/ERC20Mintable.behavior');
|
const { shouldBehaveLikeERC20Mintable } = require('./behaviors/ERC20Mintable.behavior');
|
||||||
const ERC20MintableMock = artifacts.require('ERC20MintableMock');
|
const ERC20MintableMock = artifacts.require('ERC20MintableMock');
|
||||||
const { shouldBehaveLikePublicRole } = require('../../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../../behaviors/access/roles/PublicRole.behavior');
|
||||||
|
|
||||||
contract('ERC20Mintable', function ([_, minter, otherMinter, ...otherAccounts]) {
|
contract('ERC20Mintable', function ([_, minter, otherMinter, ...otherAccounts]) {
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
const { BN, expectEvent, shouldFail } = require('openzeppelin-test-helpers');
|
const { BN, expectEvent, shouldFail } = require('openzeppelin-test-helpers');
|
||||||
|
|
||||||
const ERC20PausableMock = artifacts.require('ERC20PausableMock');
|
const ERC20PausableMock = artifacts.require('ERC20PausableMock');
|
||||||
const { shouldBehaveLikePublicRole } = require('../../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../../behaviors/access/roles/PublicRole.behavior');
|
||||||
|
|
||||||
contract('ERC20Pausable', function ([_, pauser, otherPauser, recipient, anotherAccount, ...otherAccounts]) {
|
contract('ERC20Pausable', function ([_, pauser, otherPauser, recipient, anotherAccount, ...otherAccounts]) {
|
||||||
const initialSupply = new BN(100);
|
const initialSupply = new BN(100);
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
require('openzeppelin-test-helpers');
|
require('openzeppelin-test-helpers');
|
||||||
const { shouldBehaveLikeERC721PausedToken } = require('./ERC721PausedToken.behavior');
|
const { shouldBehaveLikeERC721PausedToken } = require('./ERC721PausedToken.behavior');
|
||||||
const { shouldBehaveLikeERC721 } = require('./ERC721.behavior');
|
const { shouldBehaveLikeERC721 } = require('./ERC721.behavior');
|
||||||
const { shouldBehaveLikePublicRole } = require('../../behavior/access/roles/PublicRole.behavior');
|
const { shouldBehaveLikePublicRole } = require('../../behaviors/access/roles/PublicRole.behavior');
|
||||||
|
|
||||||
const ERC721PausableMock = artifacts.require('ERC721PausableMock.sol');
|
const ERC721PausableMock = artifacts.require('ERC721PausableMock.sol');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user