Unskip additional tests (#1185)
This commit is contained in:
@@ -12,8 +12,9 @@ import interfaces from '@polkadot/jsonrpc';
|
||||
import testKeyring from '@polkadot/keyring/testing';
|
||||
import storage from '@polkadot/api-metadata/storage/static';
|
||||
import { Codec } from '@polkadot/types/types';
|
||||
import rpcMetadataV7 from '@polkadot/types/Metadata/v7/static';
|
||||
import { Header, RuntimeVersion } from '@polkadot/types';
|
||||
import rpcMetadata from '@polkadot/types/Metadata/static';
|
||||
import rpcSignedBlock from '@polkadot/types/json/SignedBlock.004.immortal.json';
|
||||
import { Header, RuntimeVersion, SignedBlock } from '@polkadot/types';
|
||||
import { bnToU8a, logger, u8aToHex } from '@polkadot/util';
|
||||
import { randomAsU8a } from '@polkadot/util-crypto';
|
||||
|
||||
@@ -46,6 +47,8 @@ export default class Mock implements ProviderInterface {
|
||||
public isUpdating: boolean = true;
|
||||
|
||||
private requests: Record<string, (...params: any[]) => string> = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
chain_getBlock: (hash: string): any => new SignedBlock(rpcSignedBlock.result).toJSON(),
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
chain_getBlockHash: (blockNumber: number): string => '0x1234',
|
||||
chain_getRuntimeVersion: (): string => new RuntimeVersion().toHex(),
|
||||
@@ -55,7 +58,7 @@ export default class Mock implements ProviderInterface {
|
||||
);
|
||||
},
|
||||
system_chain: (): string => 'mockChain',
|
||||
state_getMetadata: (): string => rpcMetadataV7,
|
||||
state_getMetadata: (): string => rpcMetadata,
|
||||
system_name: (): string => 'mockClient',
|
||||
system_version: (): string => '9.8.7'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user