git.delta.rocks / unique-network / refs/commits / a5ed1cdb6cd5

difftreelog

test remove .only

Yaroslav Bolyukin2023-02-17parent: #9dc5612.patch.diff
in: master

1 file changed

modifiedtests/src/sub/nesting/nesting.negative.test.tsdiffbeforeafterboth
109 {mode: 'nft' as const, nesting: {tokenOwner: true, collectionAdmin: false}},109 {mode: 'nft' as const, nesting: {tokenOwner: true, collectionAdmin: false}},
110 {mode: 'nft' as const, nesting: {tokenOwner: false, collectionAdmin: true}},110 {mode: 'nft' as const, nesting: {tokenOwner: false, collectionAdmin: true}},
111].map(testCase => {111].map(testCase => {
112 itSub.only(`${testCase.nesting.tokenOwner ? 'Admin' : 'Token owner'} cannot nest when only ${testCase.nesting.tokenOwner ? 'tokenOwner' : 'collectionAdmin'} is allowed`, async ({helper}) => {112 itSub(`${testCase.nesting.tokenOwner ? 'Admin' : 'Token owner'} cannot nest when only ${testCase.nesting.tokenOwner ? 'tokenOwner' : 'collectionAdmin'} is allowed`, async ({helper}) => {
113 // Create collection with tokenOwner or create collection with collectionAdmin permission:113 // Create collection with tokenOwner or create collection with collectionAdmin permission:
114 const targetCollection = await helper.nft.mintCollection(alice, {permissions: {nesting: testCase.nesting}});114 const targetCollection = await helper.nft.mintCollection(alice, {permissions: {nesting: testCase.nesting}});
115 const targetTokenCharlie = await targetCollection.mintToken(alice, {Substrate: charlie.address});115 const targetTokenCharlie = await targetCollection.mintToken(alice, {Substrate: charlie.address});