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

difftreelog

Move non-white-listed non-privileged test for set mint permission to negative

Greg Zaitsev2021-02-05parent: #0e96376.patch.diff
in: master

1 file changed

modifiedtests/src/setMintPermission.test.tsdiffbeforeafterboth
35 });35 });
36 });36 });
37
38 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);
43
44 await createItemExpectFailure(bob, collectionId, 'NFT');
45 });
46 });
4737
48 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 });
88
89 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);
94
95 await createItemExpectFailure(bob, collectionId, 'NFT');
96 });
97 });
98});98});
9999