git.delta.rocks / unique-network / refs/commits / 0e96376fbd2d

difftreelog

tests: enabling/disabling public minting twice

Yaroslav Bolyukin2021-02-04parent: #1d9eb90.patch.diff
in: master

1 file changed

modifiedtests/src/setMintPermission.test.tsdiffbeforeafterboth
45 });45 });
46 });46 });
47
48 it('can be enabled twice', async () => {
49 await usingApi(async () => {
50 const collectionId = await createCollectionExpectSuccess({ mode: { type: 'NFT' } });
51 await setMintPermissionExpectSuccess(alice, collectionId, true);
52 await setMintPermissionExpectSuccess(alice, collectionId, true);
53 });
54 });
55
56 it('can be disabled twice', async () => {
57 await usingApi(async () => {
58 const collectionId = await createCollectionExpectSuccess({ mode: { type: 'NFT' } });
59 await setMintPermissionExpectSuccess(alice, collectionId, true);
60 await setMintPermissionExpectSuccess(alice, collectionId, false);
61 await setMintPermissionExpectSuccess(alice, collectionId, false);
62 });
63 });
47});64});
4865
49describe('Negative Integration Test setMintPermission', () => {66describe('Negative Integration Test setMintPermission', () => {