difftreelog
feat add usingPlaygrounds.atUrl, move describeXcm
in: master
2 files changed
tests/src/deprecated-helpers/helpers.tsdiffbeforeafterboth--- a/tests/src/deprecated-helpers/helpers.ts
+++ b/tests/src/deprecated-helpers/helpers.ts
@@ -1764,12 +1764,6 @@
return (await api.rpc.unique.collectionById(collectionId)).unwrap();
}
-export const describe_xcm = (
- process.env.RUN_XCM_TESTS
- ? describe
- : describe.skip
-);
-
export async function waitNewBlocks(blocksCount = 1): Promise<void> {
await usingApi(async (api) => {
const promise = new Promise<void>(async (resolve) => {
tests/src/util/playgrounds/index.tsdiffbeforeafterboth12chai.use(chaiAsPromised);12chai.use(chaiAsPromised);13export const expect = chai.expect;13export const expect = chai.expect;141415export const usingPlaygrounds = async (code: (helper: DevUniqueHelper, privateKey: (seed: string) => IKeyringPair) => Promise<void>, url: string = config.substrateUrl) => {15export async function usingPlaygrounds(code: (helper: DevUniqueHelper, privateKey: (seed: string) => IKeyringPair) => Promise<void>, url: string = config.substrateUrl) {16 const silentConsole = new SilentConsole();16 const silentConsole = new SilentConsole();17 silentConsole.enable();17 silentConsole.enable();181828 await helper.disconnect();28 await helper.disconnect();29 silentConsole.disable();29 silentConsole.disable();30 }30 }31};31}3233usingPlaygrounds.atUrl = (url: string, code: (helper: DevUniqueHelper, privateKey: (seed: string) => IKeyringPair) => Promise<void>) => {34 return usingPlaygrounds(code, url);35};323633export enum Pallets {37export enum Pallets {34 Inflation = 'inflation',38 Inflation = 'inflation',73itSubIfWithPallet.skip = (name: string, required: string[], cb: (apis: { helper: DevUniqueHelper, privateKey: (seed: string) => IKeyringPair }) => any) => itSubIfWithPallet(name, required, cb, {skip: true});77itSubIfWithPallet.skip = (name: string, required: string[], cb: (apis: { helper: DevUniqueHelper, privateKey: (seed: string) => IKeyringPair }) => any) => itSubIfWithPallet(name, required, cb, {skip: true});74itSub.ifWithPallets = itSubIfWithPallet;78itSub.ifWithPallets = itSubIfWithPallet;7980export const describeXcm = (81 process.env.RUN_XCM_TESTS82 ? describe83 : describe.skip84);7585