Skip to content

Commit

Permalink
add getAssetId test case
Browse files Browse the repository at this point in the history
  • Loading branch information
marshacb committed Nov 13, 2023
1 parent 15a317a commit be85137
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/createXcmTypes/util/getAssetId.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,11 @@ describe('getAssetId', () => {
await getAssetId(moonriverAssetsApi._api, registry, 'TEST', 'moonriver', 2, true);
}).rejects.toThrowError(`parachain assetId TEST is not a valid symbol assetIid in moonriver`);
});

it('Should correctly error when given an invalid integer xcAssetId', async () => {
await expect(async () => {
await getAssetId(moonriverAssetsApi._api, registry, '25830838603860', 'moonriver', 2, true);
}).rejects.toThrowError(`parachain assetId 25830838603860 is not a valid integer assetIid in moonriver`);
});
});
});

0 comments on commit be85137

Please sign in to comment.