git.delta.rocks / unique-network / refs/commits / 5954afe64f98

difftreelog

Skip rft tests for unique

Max Andreev2023-01-17parent: #14f430c.patch.diff
in: master

2 files changed

modifiedtests/src/eth/tokens/callMethodsERC721.test.tsdiffbeforeafterboth
105 {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},105 {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
106 // TODO {mode: 'nft' as const, requiredPallets: []},106 // TODO {mode: 'nft' as const, requiredPallets: []},
107 ].map(testCase => {107 ].map(testCase => {
108 itEth(`${testCase.mode.toUpperCase()}: ownerOf after burn`, async ({helper}) => {108 itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: ownerOf after burn`, testCase.requiredPallets, async ({helper}) => {
109 const caller = await helper.eth.createAccountWithBalance(donor);109 const caller = await helper.eth.createAccountWithBalance(donor);
110 const receiver = helper.eth.createAccount();110 const receiver = helper.eth.createAccount();
111 const {collection, collectionId} = await helper.eth.createCollection(testCase.mode, caller, 'OwnerOf-AfterBurn', '6', '6');111 const {collection, collectionId} = await helper.eth.createCollection(testCase.mode, caller, 'OwnerOf-AfterBurn', '6', '6');
124 });124 });
125 });125 });
126126
127 itEth('RFT: ownerOf for partial ownership', async ({helper}) => {127 itEth.ifWithPallets('RFT: ownerOf for partial ownership', [Pallets.ReFungible], async ({helper}) => {
128 const caller = await helper.eth.createAccountWithBalance(donor);128 const caller = await helper.eth.createAccountWithBalance(donor);
129 const receiver = helper.eth.createAccount();129 const receiver = helper.eth.createAccount();
130 const {collectionId, collectionAddress} = await helper.eth.createRFTCollection(caller, 'Partial-OwnerOf', '6', '6');130 const {collectionId, collectionAddress} = await helper.eth.createRFTCollection(caller, 'Partial-OwnerOf', '6', '6');
modifiedtests/src/eth/tokens/minting.test.tsdiffbeforeafterboth
--- a/tests/src/eth/tokens/minting.test.ts
+++ b/tests/src/eth/tokens/minting.test.ts
@@ -35,7 +35,7 @@
     {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
     {mode: 'ft' as const, requiredPallets: []},
   ].map(testCase => {
-    itEth(`${testCase.mode.toUpperCase()}: Can mint() for Substrate collection`, async ({helper}) => {
+    itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: Can mint() for Substrate collection`, testCase.requiredPallets, async ({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
       const receiver = helper.eth.createAccount();
       const mintingParams = testCase.mode === 'ft' ? [receiver, 100] : [receiver];
@@ -73,7 +73,7 @@
     {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
     {mode: 'ft' as const, requiredPallets: []},
   ].map(testCase => {
-    itEth(`${testCase.mode.toUpperCase()}: Can mint() for Ethereum collection`, async ({helper}) => {
+    itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: Can mint() for Ethereum collection`, testCase.requiredPallets, async ({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
       const receiver = helper.eth.createAccount();
       const mintingParams = testCase.mode === 'ft' ? [receiver, 100] : [receiver];
@@ -107,7 +107,7 @@
     {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
     {mode: 'ft' as const, requiredPallets: []},
   ].map(testCase => {
-    itEth(`${testCase.mode.toUpperCase()}: Can mint() for Ethereum collection`, async ({helper}) => {
+    itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: Can mint() for Ethereum collection`, testCase.requiredPallets, async ({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
       const receiver = helper.eth.createAccount();
       const mintingParams = testCase.mode === 'ft' ? [receiver, 100] : [receiver];
@@ -140,7 +140,7 @@
     {mode: 'nft' as const, requiredPallets: []},
     {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
   ].map(testCase => {
-    itEth(`${testCase.mode.toUpperCase()}: Can mintWithTokenURI() for Ethereum collection`, async ({helper}) => {
+    itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: Can mintWithTokenURI() for Ethereum collection`, testCase.requiredPallets, async ({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
       const receiver = helper.eth.createAccount();