git.delta.rocks / unique-network / refs/commits / 9e6bd66f0fef

difftreelog

fix wrap rft test with ifWithPallets

rkv2022-09-22parent: #fd6a419.patch.diff
in: master

1 file changed

modifiedtests/src/createItem.test.tsdiffbeforeafterboth
209 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/);