1234567891011121314151617import {IKeyringPair} from '@polkadot/types/types';18import privateKey from './substrate/privateKey';19import usingApi from './substrate/substrate-api';20import {21 createCollectionExpectSuccess,22 addCollectionAdminExpectSuccess,23 setChainLimitsExpectFailure,24 IChainLimits,25} from './util/helpers';2627describe.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 () => {35 alice = privateKey('//Alice');36 bob = privateKey('//Bob');37 dave = privateKey('//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 offchainSchemaLimit: 1,47 variableOnChainSchemaLimit: 1,48 constOnChainSchemaLimit: 1,49 };50 });51 });5253 it('Collection owner cannot set chain limits', async () => {54 await createCollectionExpectSuccess({mode: {type: 'NFT'}});55 await setChainLimitsExpectFailure(alice, limits);56 });5758 it('Collection admin cannot set chain limits', async () => {59 const collectionId = await createCollectionExpectSuccess({mode: {type: 'NFT'}});60 await addCollectionAdminExpectSuccess(alice, collectionId, bob.address);61 await setChainLimitsExpectFailure(bob, limits);62 });6364 it('Regular user cannot set chain limits', async () => {65 await setChainLimitsExpectFailure(dave, limits);66 });67});