From d3601054048c9129c35b3e6ce135d47b2154f582 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Tue, 27 Oct 2026 05:29:01 +0300 Subject: [PATCH] test: expect partial return in local reads e2e (#138) --- test/tbank-local-reads.e2e-spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/tbank-local-reads.e2e-spec.ts b/test/tbank-local-reads.e2e-spec.ts index bf8290f..58aa495 100644 --- a/test/tbank-local-reads.e2e-spec.ts +++ b/test/tbank-local-reads.e2e-spec.ts @@ -234,7 +234,9 @@ describe('local accounts and portfolio HTTP (SQLite)', () => { }], unvaluedCategories: [], }, - unrealizedReturnByCurrency: [], + unrealizedReturnByCurrency: [ + { currency: 'RUB', absolute: '0', costBasis: '0', percent: null, partial: true }, + ], }); const portfolio = await get('brokerage-accounts/account/portfolio').expect( 200, @@ -514,7 +516,9 @@ describe('local accounts and portfolio HTTP (SQLite)', () => { totalsByCurrency: [{ currency: 'RUB', value: '21.1' }], cashBalances: [{ currency: 'RUB', value: '1.1' }], structure: { currencies: [{ currency: 'RUB' }] }, - unrealizedReturnByCurrency: [], + unrealizedReturnByCurrency: [ + { currency: 'RUB', absolute: '0', costBasis: '0', percent: null, partial: true }, + ], stockPositionCount: 1, bondPositionCount: 0, fundPositionCount: 0,