difftreelog
fix wrap rft test with ifWithPallets
in: master
1 file changed
tests/src/createItem.test.tsdiffbeforeafterboth209 const mintTx = async () => collection.mint(bob, 10n, {Substrate: bob.address});209 const mintTx = async () => collection.mint(bob, 10n, {Substrate: bob.address});210 await expect(mintTx()).to.be.rejectedWith(/common\.PublicMintingNotAllowed/);210 await expect(mintTx()).to.be.rejectedWith(/common\.PublicMintingNotAllowed/);211 });211 });212 itSub('Regular user cannot create new item in ReFungible collection', async ({helper}) => {212 itSub.ifWithPallets('Regular user cannot create new item in ReFungible collection', [Pallets.ReFungible], async ({helper}) => {213 const collection = await helper.rft.mintCollection(alice, {name: 'col', description: 'descr', tokenPrefix: 'COL'});213 const collection = await helper.rft.mintCollection(alice, {name: 'col', description: 'descr', tokenPrefix: 'COL'});214 const mintTx = async () => collection.mintToken(bob, 100n, {Substrate: bob.address});214 const mintTx = async () => collection.mintToken(bob, 100n, {Substrate: bob.address});215 await expect(mintTx()).to.be.rejectedWith(/common\.PublicMintingNotAllowed/);215 await expect(mintTx()).to.be.rejectedWith(/common\.PublicMintingNotAllowed/);