Skip to content

Commit

Permalink
test: use isCaipNamespace for KnownCaipNamespace's test
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Oct 9, 2024
1 parent c42979d commit bffbaf9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/caip-types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,7 @@ describe('toCaipChainId', () => {
it.each(Object.values(KnownCaipNamespace))(
'treats %s as a valid namespace',
(namespace) => {
const reference = '1';
expect(toCaipChainId(namespace, reference)).toBe(
`${namespace}:${reference}`,
);
expect(isCaipNamespace(namespace)).toBe(true);
},
);

Expand Down

0 comments on commit bffbaf9

Please sign in to comment.