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