1234567891011121314151617import {IKeyringPair} from '@polkadot/types/types';18import usingApi from '../substrate/substrate-api';19import {20 createCollectionExpectSuccess,21 addCollectionAdminExpectSuccess,22 setChainLimitsExpectFailure,23 IChainLimits,24} from '../deprecated-helpers/helpers';252627describe.skip('Negative Integration Test setChainLimits', () => {28 let alice: IKeyringPair;29 let bob: IKeyringPair;30 let dave: IKeyringPair;31 let limits: IChainLimits;3233 before(async () => {34 await usingApi(async (api, privateKeyWrapper) => {35 alice = privateKeyWrapper('//Alice');36 bob = privateKeyWrapper('//Bob');37 dave = privateKeyWrapper('//Dave');38 limits = {39 collectionNumbersLimit : 1,40 accountTokenOwnershipLimit: 1,41 collectionsAdminsLimit: 1,42 customDataLimit: 1,43 nftSponsorTransferTimeout: 1,44 fungibleSponsorTransferTimeout: 1,45 refungibleSponsorTransferTimeout: 1,46 };47 });48 });4950 it('Collection owner cannot set chain limits', async () => {51 await createCollectionExpectSuccess({mode: {type: 'NFT'}});52 await setChainLimitsExpectFailure(alice, limits);53 });5455 it('Collection admin cannot set chain limits', async () => {56 const collectionId = await createCollectionExpectSuccess({mode: {type: 'NFT'}});57 await addCollectionAdminExpectSuccess(alice, collectionId, bob.address);58 await setChainLimitsExpectFailure(bob, limits);59 });6061 it('Regular user cannot set chain limits', async () => {62 await setChainLimitsExpectFailure(dave, limits);63 });64});