Skip to content

Commit

Permalink
added test for new registry
Browse files Browse the repository at this point in the history
  • Loading branch information
bee344 committed Feb 2, 2024
1 parent a55e611 commit f46d1a5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/registry/parseRegistry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,26 @@ describe('parseRegistry', () => {
poolPairsInfo: {},
});
});
it('Should correctly add an injectedRegistry only with tokens and specName', () => {
const opts = {
injectedRegistry: {
westend: {
'4000': {
tokens: ['GRN'],
specName: 'guarani',
},
},
},
};

const registry = parseRegistry(reg as ChainInfoRegistry, opts);

expect(registry.westend['4000']).toStrictEqual({
tokens: ['GRN'],
assetsInfo: {},
foreignAssetsInfo: {},
specName: 'guarani',
poolPairsInfo: {},
});
});
});

0 comments on commit f46d1a5

Please sign in to comment.