git.delta.rocks / unique-network / refs/commits / 4c88a1537556

difftreelog

chore skip test if refungible pallet is not supported

Grigoriy Simonov2022-10-25parent: #bd8bc1b.patch.diff
in: master

2 files changed

modifiedtests/src/eth/collectionProperties.test.tsdiffbeforeafterboth
--- 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}) => {
modifiedtests/src/eth/tokenProperties.test.tsdiffbeforeafterboth
17import {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';
2021
21describe('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}`)}; });