git.delta.rocks / unique-network / refs/commits / 43dd64e7f847

difftreelog

Fix tests

Max Andreev2022-12-15parent: #7c53159.patch.diff
in: master

1 file changed

modifiedtests/src/eth/collectionLimits.test.tsdiffbeforeafterboth
121 }));121 }));
122122
123 [123 [
124 {case: 'nft' as const, method: 'createNFTCollection' as const},124 {case: 'nft' as const, requiredPallets: []},
125 {case: 'rft' as const, method: 'createRFTCollection' as const, requiredPallets: [Pallets.ReFungible]},125 {case: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
126 {case: 'ft' as const, method: 'createFTCollection' as const},126 {case: 'ft' as const, requiredPallets: []},
127 ].map(testCase =>127 ].map(testCase =>
128 itEth.ifWithPallets(`Non-owner and non-admin cannot set collection limits for ${testCase.case}`, testCase.requiredPallets || [], async ({helper}) => {128 itEth.ifWithPallets(`Non-owner and non-admin cannot set collection limits for ${testCase.case}`, testCase.requiredPallets || [], async ({helper}) => {
129 const owner = await helper.eth.createAccountWithBalance(donor);129 const owner = await helper.eth.createAccountWithBalance(donor);
130 const nonOwner = await helper.eth.createAccountWithBalance(donor);130 const nonOwner = await helper.eth.createAccountWithBalance(donor);
131 const {collectionAddress} = await helper.eth.createCollecion(testCase.method, owner, 'Limits', 'absolutely anything', 'FLO', 18);131 const {collectionAddress} = await helper.eth.createCollection(testCase.case, owner, 'Limits', 'absolutely anything', 'FLO', 18);
132132
133 const collectionEvm = helper.ethNativeContract.collection(collectionAddress, testCase.case, owner);133 const collectionEvm = helper.ethNativeContract.collection(collectionAddress, testCase.case, owner);
134 await expect(collectionEvm.methods134 await expect(collectionEvm.methods