From 9e6bd66f0fef69c2f8ac964fb416e2021b78c663 Mon Sep 17 00:00:00 2001 From: rkv Date: Thu, 22 Sep 2022 11:27:02 +0000 Subject: [PATCH] fix: wrap rft test with ifWithPallets --- --- a/tests/src/createItem.test.ts +++ b/tests/src/createItem.test.ts @@ -209,7 +209,7 @@ const mintTx = async () => collection.mint(bob, 10n, {Substrate: bob.address}); await expect(mintTx()).to.be.rejectedWith(/common\.PublicMintingNotAllowed/); }); - itSub('Regular user cannot create new item in ReFungible collection', async ({helper}) => { + itSub.ifWithPallets('Regular user cannot create new item in ReFungible collection', [Pallets.ReFungible], async ({helper}) => { const collection = await helper.rft.mintCollection(alice, {name: 'col', description: 'descr', tokenPrefix: 'COL'}); const mintTx = async () => collection.mintToken(bob, 100n, {Substrate: bob.address}); await expect(mintTx()).to.be.rejectedWith(/common\.PublicMintingNotAllowed/); -- gitstuff