difftreelog
Move non-white-listed non-privileged test for set mint permission to negative
in: master
1 file changed
tests/src/setMintPermission.test.tsdiffbeforeafterboth35 });35 });36 });36 });3738 it('ensure non-white-listed non-privileged address can\'t mint tokens', async () => {39 await usingApi(async () => {40 const collectionId = await createCollectionExpectSuccess({ mode: { type: 'NFT' } });41 await enableWhiteListExpectSuccess(alice, collectionId);42 await setMintPermissionExpectSuccess(alice, collectionId, true);4344 await createItemExpectFailure(bob, collectionId, 'NFT');45 });46 });473748 it('can be enabled twice', async () => {38 it('can be enabled twice', async () => {49 await usingApi(async () => {39 await usingApi(async () => {96 await setMintPermissionExpectFailure(bob, collectionId, true);86 await setMintPermissionExpectFailure(bob, collectionId, true);97 });87 });8889 it('ensure non-white-listed non-privileged address can\'t mint tokens', async () => {90 await usingApi(async () => {91 const collectionId = await createCollectionExpectSuccess({ mode: { type: 'NFT' } });92 await enableWhiteListExpectSuccess(alice, collectionId);93 await setMintPermissionExpectSuccess(alice, collectionId, true);9495 await createItemExpectFailure(bob, collectionId, 'NFT');96 });97 });98});98});9999