Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Oct 3, 2024
1 parent d47183a commit a8de6d4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/types/src/metadata/Metadata.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import type { HexString } from '@polkadot/util/types';

import kusamaV14 from '@polkadot/types-support/metadata/static-kusama';
import polkadotV14 from '@polkadot/types-support/metadata/static-polkadot';
import substrateV14 from '@polkadot/types-support/metadata/static-substrate';
import kusamaV14 from '@polkadot/types-support/metadata/v14/kusama-hex';
import polkadotV14 from '@polkadot/types-support/metadata/v14/polkadot-hex';
import substrateV14 from '@polkadot/types-support/metadata/v14/substrate-hex';
import kusama from '@polkadot/types-support/metadata/v15/kusama-hex';
import polkadot from '@polkadot/types-support/metadata/v15/polkadot-hex';
import substrate from '@polkadot/types-support/metadata/v15/substrate-hex';
Expand All @@ -22,9 +22,9 @@ const allData: Record<string, HexString> = {
};

const allDataV14: Record<string, HexString> = {
kusamaV14,
polkadotV14,
substrateV14
kusama: kusamaV14,
polkadot: polkadotV14,
substrate: substrateV14
};

for (const type of ['kusama', 'polkadot', 'substrate'] as const) {
Expand All @@ -40,8 +40,8 @@ for (const type of ['kusama', 'polkadot', 'substrate'] as const) {
});

it('has a sane toCallsOnly V14 only', (): void => {
const metadata = new Metadata(new TypeRegistry(), allDataV14[type]);
const test = metadata.asCallsOnly;
const metadatav14 = new Metadata(new TypeRegistry(), allDataV14[type]);
const test = metadatav14.asCallsOnly;

// it has a useful length
expect(
Expand Down

0 comments on commit a8de6d4

Please sign in to comment.