123456789101112131415161718import {IKeyringPair} from '@polkadot/types/types';19import {getEventMessage} from '../util/helpers';20import {itSub, usingPlaygrounds, expect} from '../util/playgrounds';2122describe('Destroy collection event ', () => {23 let alice: IKeyringPair;24 const checkTreasury = 'Deposit';25 const checkSystem = 'ExtrinsicSuccess';26 before(async () => {27 await usingPlaygrounds(async (helper, privateKey) => {28 const donor = privateKey('//Alice');29 [alice] = await helper.arrange.createAccounts([10n], donor);30 });31 });3233 itSub('Check event from destroyCollection(): ', async ({helper}) => {34 const collection = await helper.nft.mintCollection(alice, {name: 'test', description: 'test', tokenPrefix: 'test'});35 await collection.burn(alice);36 const msg = JSON.stringify(getEventMessage(helper.chainLog[helper.chainLog.length - 1].events));37 expect(msg).to.be.contain(checkTreasury);38 expect(msg).to.be.contain(checkSystem);39 });40});