Skip to content

Commit

Permalink
fix: tests (#57)
Browse files Browse the repository at this point in the history
* Fix tests

* [bot] New pkg version: 0.0.0-alpha.10

* Empty commit

---------

Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
sophialittlejohn and actions-user authored Jan 27, 2025
1 parent 6c65656 commit fb52d09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": "",
Expand Down
7 changes: 5 additions & 2 deletions src/tests/mocks/mockAssetTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const mockAssetTransactions: AssetTransaction[] = [
metadata: 'Asset 1 metadata',
type: AssetType.OnchainCash,
currentPrice: '1000000000000000000', // 1.0
name: 'Asset 1',
},
},
{
Expand All @@ -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',
Expand All @@ -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,
Expand All @@ -72,6 +74,7 @@ export const mockAssetTransactions: AssetTransaction[] = [
metadata: 'Asset 2 metadata',
type: AssetType.OffchainCash,
currentPrice: null,
name: 'Asset 2',
},
fromAsset: {
id: 'poolId-1',
Expand Down

0 comments on commit fb52d09

Please sign in to comment.