git.delta.rocks / unique-network / refs/commits / 55817c2dfda1

difftreelog

fix test

Trubnikov Sergey2023-05-19parent: #3c7e64b.patch.diff
in: master

1 file changed

modifiedtests/src/nativeFungible.test.tsdiffbeforeafterboth
18import {expect, itSub, usingPlaygrounds} from './util';18import {expect, itSub, usingPlaygrounds} from './util';
1919
20describe('Native fungible', () => {20describe('Native fungible', () => {
21 let root: IKeyringPair;
21 let alice: IKeyringPair;22 let alice: IKeyringPair;
22 let bob: IKeyringPair;23 let bob: IKeyringPair;
2324
24 before(async () => {25 before(async () => {
25 await usingPlaygrounds(async (helper, privateKey) => {26 await usingPlaygrounds(async (helper, privateKey) => {
27 root = await privateKey('//Alice');
26 const donor = await privateKey({url: import.meta.url});28 const donor = await privateKey({url: import.meta.url});
27 [alice, bob] = await helper.arrange.createAccounts([10n, 10n], donor);29 [alice, bob] = await helper.arrange.createAccounts([10n, 10n], donor);
28 });30 });
199 });201 });
200202
201 itSub('force_repair_item()', async ({helper}) => {203 itSub('force_repair_item()', async ({helper}) => {
202 await expect(helper.executeExtrinsic(204 await expect(helper.getSudo().executeExtrinsic(
203 alice,205 root,
204 'api.tx.unique.forceRepairItem',206 'api.tx.unique.forceRepairItem',
205 [0, 0],207 [0, 0],
206 true,208 true,
207 )).to.be.rejectedWith('BadOrigin');209 )).to.be.rejectedWith('common.UnsupportedOperation');
208 });210 });
209211
210 itSub('Nest into NFT token()', async ({helper}) => {212 itSub('Nest into NFT token()', async ({helper}) => {