From 55817c2dfda14d2550c7c04a3bd8ddad98cfda92 Mon Sep 17 00:00:00 2001 From: Trubnikov Sergey Date: Fri, 19 May 2023 09:02:24 +0000 Subject: [PATCH] fix test --- --- a/tests/src/nativeFungible.test.ts +++ b/tests/src/nativeFungible.test.ts @@ -18,11 +18,13 @@ import {expect, itSub, usingPlaygrounds} from './util'; describe('Native fungible', () => { + let root: IKeyringPair; let alice: IKeyringPair; let bob: IKeyringPair; before(async () => { await usingPlaygrounds(async (helper, privateKey) => { + root = await privateKey('//Alice'); const donor = await privateKey({url: import.meta.url}); [alice, bob] = await helper.arrange.createAccounts([10n, 10n], donor); }); @@ -199,12 +201,12 @@ }); itSub('force_repair_item()', async ({helper}) => { - await expect(helper.executeExtrinsic( - alice, + await expect(helper.getSudo().executeExtrinsic( + root, 'api.tx.unique.forceRepairItem', [0, 0], true, - )).to.be.rejectedWith('BadOrigin'); + )).to.be.rejectedWith('common.UnsupportedOperation'); }); itSub('Nest into NFT token()', async ({helper}) => { -- gitstuff