Skip to content

Commit

Permalink
update SystemToSystem fetchAssetType tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marshacb committed Jul 6, 2023
1 parent 5e7d332 commit 811fc60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/AssetsTransferApi.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ describe('AssetTransferAPI', () => {
expect(assetType).toEqual('Native');
});
});
describe('SystemToSystem', () => {
it('Should corectly return Native', () => {
const assetType = systemAssetsApi['fetchAssetType'](
Direction.SystemToRelay
);

expect(assetType).toEqual('Native');
});
});
describe('RelayToSystem', () => {
it('Should correctly return Native', () => {
const assetType = systemAssetsApi['fetchAssetType'](
Expand Down
2 changes: 1 addition & 1 deletion src/AssetsTransferApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ export class AssetsTransferApi {
*
* @param destChainId string
* @param registry Registry
* @returns
* @returns string
*/
private getDestinationSpecName(destId: string, registry: Registry): string {
if (destId === '0') {
Expand Down

0 comments on commit 811fc60

Please sign in to comment.