difftreelog
chore skip test if refungible pallet is not supported
in: master
2 files changed
tests/src/eth/collectionProperties.test.tsdiffbeforeafterboth196 itEth('Set/read properties ft', async ({helper}) => {196 itEth('Set/read properties ft', async ({helper}) => {197 await testSetReadProperties(helper, 'ft');197 await testSetReadProperties(helper, 'ft');198 });198 });199 itEth('Set/read properties rft', async ({helper}) => {199 itEth.ifWithPallets('Set/read properties rft', [Pallets.ReFungible], async ({helper}) => {200 await testSetReadProperties(helper, 'rft');200 await testSetReadProperties(helper, 'rft');201 });201 });202 itEth('Set/read properties nft', async ({helper}) => {202 itEth('Set/read properties nft', async ({helper}) => {242 itEth('Delete properties ft', async ({helper}) => {242 itEth('Delete properties ft', async ({helper}) => {243 await testDeleteProperties(helper, 'ft');243 await testDeleteProperties(helper, 'ft');244 });244 });245 itEth('Delete properties rft', async ({helper}) => {245 itEth.ifWithPallets('Delete properties rft', [Pallets.ReFungible], async ({helper}) => {246 await testDeleteProperties(helper, 'rft');246 await testDeleteProperties(helper, 'rft');247 });247 });248 itEth('Delete properties nft', async ({helper}) => {248 itEth('Delete properties nft', async ({helper}) => {tests/src/eth/tokenProperties.test.tsdiffbeforeafterboth--- 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}`)}; });