123456789101112131415161718import {IKeyringPair} from '@polkadot/types/types';19import {getEventMessage} from '../util/helpers';20import {usingPlaygrounds, itSub, expect} from '../util/playgrounds';2122describe('Create Multiple Items Event event ', () => {23 let alice: IKeyringPair;24 const checkSection = 'ItemCreated';25 const checkTreasury = 'Deposit';26 const checkSystem = 'ExtrinsicSuccess';27 before(async () => {28 await usingPlaygrounds(async (helper, privateKey) => {29 const donor = privateKey('//Alice');30 [alice] = await helper.arrange.createAccounts([10n], donor);31 });32 });33 itSub('Check event from createMultipleItems(): ', async ({helper}) => {34 const collection = await helper.nft.mintCollection(alice, {name: 'test', description: 'test', tokenPrefix: 'test'});3536 await collection.mintMultipleTokens(alice, [37 {owner: {Substrate: alice.address}},38 {owner: {Substrate: alice.address}},39 ]);4041 const msg = JSON.stringify(getEventMessage(helper.chainLog[helper.chainLog.length - 1].events));42 expect(msg).to.be.contain(checkSection);43 expect(msg).to.be.contain(checkTreasury);44 expect(msg).to.be.contain(checkSystem);45 });46});