From 4c88a15375562a15bb59221709ad8985f228685e Mon Sep 17 00:00:00 2001 From: Grigoriy Simonov Date: Tue, 25 Oct 2022 08:33:30 +0000 Subject: [PATCH] chore: skip test if refungible pallet is not supported --- --- a/tests/src/eth/collectionProperties.test.ts +++ b/tests/src/eth/collectionProperties.test.ts @@ -196,7 +196,7 @@ itEth('Set/read properties ft', async ({helper}) => { await testSetReadProperties(helper, 'ft'); }); - itEth('Set/read properties rft', async ({helper}) => { + itEth.ifWithPallets('Set/read properties rft', [Pallets.ReFungible], async ({helper}) => { await testSetReadProperties(helper, 'rft'); }); itEth('Set/read properties nft', async ({helper}) => { @@ -242,7 +242,7 @@ itEth('Delete properties ft', async ({helper}) => { await testDeleteProperties(helper, 'ft'); }); - itEth('Delete properties rft', async ({helper}) => { + itEth.ifWithPallets('Delete properties rft', [Pallets.ReFungible], async ({helper}) => { await testDeleteProperties(helper, 'rft'); }); itEth('Delete properties nft', async ({helper}) => { --- a/tests/src/eth/tokenProperties.test.ts +++ b/tests/src/eth/tokenProperties.test.ts @@ -17,6 +17,7 @@ import {itEth, usingEthPlaygrounds, expect} from './util'; import {IKeyringPair} from '@polkadot/types/types'; import {ITokenPropertyPermission} from '../util/playgrounds/types'; +import {Pallets} from '../util'; describe('EVM token properties', () => { let donor: IKeyringPair; @@ -99,7 +100,7 @@ expect(values).to.be.deep.equal(properties.map(p => { return {key: p.field_0, value: p.field_1.toString()}; })); }); - itEth('Can be multiple set for RFT ', async({helper}) => { + itEth.ifWithPallets('Can be multiple set for RFT ', [Pallets.ReFungible], async({helper}) => { const caller = await helper.eth.createAccountWithBalance(donor); const properties = Array(5).fill(0).map((_, i) => { return {field_0: `key_${i}`, field_1: Buffer.from(`value_${i}`)}; }); -- gitstuff