From fb52d095d67857776e6b30e42565468ba74b2499 Mon Sep 17 00:00:00 2001 From: Sophia Date: Mon, 27 Jan 2025 17:36:03 -0500 Subject: [PATCH] fix: tests (#57) * Fix tests * [bot] New pkg version: 0.0.0-alpha.10 * Empty commit --------- Co-authored-by: GitHub Actions --- package.json | 2 +- src/tests/mocks/mockAssetTransactions.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 192d588..66b5894 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@centrifuge/sdk", - "version": "0.0.0-alpha.9", + "version": "0.0.0-alpha.10", "description": "", "homepage": "https://github.com/centrifuge/sdk/tree/main#readme", "author": "", diff --git a/src/tests/mocks/mockAssetTransactions.ts b/src/tests/mocks/mockAssetTransactions.ts index 8e583b1..dc28ad4 100644 --- a/src/tests/mocks/mockAssetTransactions.ts +++ b/src/tests/mocks/mockAssetTransactions.ts @@ -22,6 +22,7 @@ export const mockAssetTransactions: AssetTransaction[] = [ metadata: 'Asset 1 metadata', type: AssetType.OnchainCash, currentPrice: '1000000000000000000', // 1.0 + name: 'Asset 1', }, }, { @@ -44,6 +45,7 @@ export const mockAssetTransactions: AssetTransaction[] = [ metadata: 'Asset 1 metadata', type: AssetType.OnchainCash, currentPrice: '1000000000000000000', // 1.0 + name: 'Asset 1', }, toAsset: { id: 'poolId-2', @@ -62,8 +64,8 @@ export const mockAssetTransactions: AssetTransaction[] = [ amount: Currency.fromFloat(5000, 6), settlementPrice: null, quantity: null, - principalAmount: undefined, - interestAmount: undefined, + principalAmount: null, + interestAmount: null, hash: '0xghi789', realizedProfitFifo: undefined, unrealizedProfitAtMarketPrice: undefined, @@ -72,6 +74,7 @@ export const mockAssetTransactions: AssetTransaction[] = [ metadata: 'Asset 2 metadata', type: AssetType.OffchainCash, currentPrice: null, + name: 'Asset 2', }, fromAsset: { id: 'poolId-1',