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.tsdiffbeforeafterboth17import {itEth, usingEthPlaygrounds, expect} from './util';17import {itEth, usingEthPlaygrounds, expect} from './util';18import {IKeyringPair} from '@polkadot/types/types';18import {IKeyringPair} from '@polkadot/types/types';19import {ITokenPropertyPermission} from '../util/playgrounds/types';19import {ITokenPropertyPermission} from '../util/playgrounds/types';20import {Pallets} from '../util';202121describe('EVM token properties', () => {22describe('EVM token properties', () => {22 let donor: IKeyringPair;23 let donor: IKeyringPair;99 expect(values).to.be.deep.equal(properties.map(p => { return {key: p.field_0, value: p.field_1.toString()}; }));100 expect(values).to.be.deep.equal(properties.map(p => { return {key: p.field_0, value: p.field_1.toString()}; }));100 });101 });101 102 102 itEth('Can be multiple set for RFT ', async({helper}) => {103 itEth.ifWithPallets('Can be multiple set for RFT ', [Pallets.ReFungible], async({helper}) => {103 const caller = await helper.eth.createAccountWithBalance(donor);104 const caller = await helper.eth.createAccountWithBalance(donor);104 105 105 const properties = Array(5).fill(0).map((_, i) => { return {field_0: `key_${i}`, field_1: Buffer.from(`value_${i}`)}; });106 const properties = Array(5).fill(0).map((_, i) => { return {field_0: `key_${i}`, field_1: Buffer.from(`value_${i}`)}; });