From c07a528dbe65019eea11a12fcdb7803a0a85f392 Mon Sep 17 00:00:00 2001 From: "Miquel A. Cabot" Date: Mon, 21 Mar 2022 15:22:24 +0100 Subject: [PATCH] change NftFactory test directory --- package.json | 2 +- test/unit/{ => factories}/NftFactory.test.ts | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) rename test/unit/{ => factories}/NftFactory.test.ts (97%) diff --git a/package.json b/package.json index 477128a1..4379c494 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "test:dispenser": "npm run mocha -- 'test/unit/pools/dispenser/Dispenser.test.ts'", "test:dt": "npm run mocha -- 'test/unit/tokens/Datatoken.test.ts'", "test:nftDt": "npm run mocha -- 'test/unit/tokens/Nft.test.ts'", - "test:factory": "npm run mocha -- 'test/unit/NftFactory.test.ts'", + "test:factory": "npm run mocha -- 'test/unit/factories/NftFactory.test.ts'", "test:router": "npm run mocha -- 'test/unit/pools/Router.test.ts'", "test:publishAll": "npm run mocha -- 'test/integration/PublishFlows.test.ts'", "test:unit": "npm run mocha -- 'test/unit/**/*.test.ts'", diff --git a/test/unit/NftFactory.test.ts b/test/unit/factories/NftFactory.test.ts similarity index 97% rename from test/unit/NftFactory.test.ts rename to test/unit/factories/NftFactory.test.ts index d60d0c3a..7f1d0f2e 100644 --- a/test/unit/NftFactory.test.ts +++ b/test/unit/factories/NftFactory.test.ts @@ -1,16 +1,22 @@ import { assert, expect } from 'chai' import { AbiItem } from 'web3-utils/types' -import { deployContracts, Addresses } from '../TestContractHandler' +import { deployContracts, Addresses } from '../../TestContractHandler' import ERC20Template from '@oceanprotocol/contracts/artifacts/contracts/templates/ERC20Template.sol/ERC20Template.json' import MockERC20 from '@oceanprotocol/contracts/artifacts/contracts/utils/mock/MockERC20Decimals.sol/MockERC20Decimals.json' -import { web3 } from '../config' -import { NftFactory, NftCreateData, TokenOrder, ZERO_ADDRESS, signHash } from '../../src' +import { web3 } from '../../config' +import { + NftFactory, + NftCreateData, + TokenOrder, + ZERO_ADDRESS, + signHash +} from '../../../src' import { ProviderFees, FreCreationParams, Erc20CreateParams, PoolCreationParams -} from '../../src/@types' +} from '../../../src/@types' describe('Nft Factory test', () => { let factoryOwner: string