From 9fa2d18c4c7a725e81a68bf4ea2ca7c028e6b6d6 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Fri, 14 Oct 2022 09:08:12 +0000 Subject: [PATCH] fix: skip rmrk before --- --- a/tests/src/rmrk/rmrkIsolation.test.ts +++ b/tests/src/rmrk/rmrkIsolation.test.ts @@ -1,6 +1,6 @@ import {executeTransaction} from '../substrate/substrate-api'; import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, expect, usingPlaygrounds, Pallets} from '../util/playgrounds'; +import {itSub, expect, usingPlaygrounds, Pallets, requirePalletsOrSkip} from '../util/playgrounds'; import {UniqueHelper} from '../util/playgrounds/unique'; let alice: IKeyringPair; @@ -84,12 +84,14 @@ let rmrkNftId: number; let normalizedAlice: {Substrate: string}; - before(async () => { + before(async function() { await usingPlaygrounds(async (helper, privateKey) => { alice = privateKey('//Alice'); bob = privateKey('//Bob'); normalizedAlice = {Substrate: helper.address.normalizeSubstrateToChainFormat(alice.address)}; + requirePalletsOrSkip(this, helper, [Pallets.RmrkCore]); + const collectionIds = await createRmrkCollection(helper, alice); uniqueCollectionId = collectionIds.uniqueId; rmrkCollectionId = collectionIds.rmrkId; -- gitstuff