From 9abd4dac4b08e2e1d7d08cb4b954deb4e43f939a Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Fri, 05 Feb 2021 11:04:23 +0000 Subject: [PATCH] Move non-white-listed non-privileged test for set mint permission to negative --- --- a/tests/src/setMintPermission.test.ts +++ b/tests/src/setMintPermission.test.ts @@ -35,16 +35,6 @@ }); }); - it('ensure non-white-listed non-privileged address can\'t mint tokens', async () => { - await usingApi(async () => { - const collectionId = await createCollectionExpectSuccess({ mode: { type: 'NFT' } }); - await enableWhiteListExpectSuccess(alice, collectionId); - await setMintPermissionExpectSuccess(alice, collectionId, true); - - await createItemExpectFailure(bob, collectionId, 'NFT'); - }); - }); - it('can be enabled twice', async () => { await usingApi(async () => { const collectionId = await createCollectionExpectSuccess({ mode: { type: 'NFT' } }); @@ -95,4 +85,14 @@ await enableWhiteListExpectSuccess(alice, collectionId); await setMintPermissionExpectFailure(bob, collectionId, true); }); + + it('ensure non-white-listed non-privileged address can\'t mint tokens', async () => { + await usingApi(async () => { + const collectionId = await createCollectionExpectSuccess({ mode: { type: 'NFT' } }); + await enableWhiteListExpectSuccess(alice, collectionId); + await setMintPermissionExpectSuccess(alice, collectionId, true); + + await createItemExpectFailure(bob, collectionId, 'NFT'); + }); + }); }); -- gitstuff