test: expect partial return in local reads e2e (#138)
Backend verify / commits (pull_request) Successful in 24s
Backend verify / security (pull_request) Successful in 7s
Backend verify / verify (pull_request) Successful in 4m28s

This commit is contained in:
2026-10-27 05:29:01 +03:00
parent 02880ed579
commit d360105404
+6 -2
View File
@@ -234,7 +234,9 @@ describe('local accounts and portfolio HTTP (SQLite)', () => {
}], }],
unvaluedCategories: [], unvaluedCategories: [],
}, },
unrealizedReturnByCurrency: [], unrealizedReturnByCurrency: [
{ currency: 'RUB', absolute: '0', costBasis: '0', percent: null, partial: true },
],
}); });
const portfolio = await get('brokerage-accounts/account/portfolio').expect( const portfolio = await get('brokerage-accounts/account/portfolio').expect(
200, 200,
@@ -514,7 +516,9 @@ describe('local accounts and portfolio HTTP (SQLite)', () => {
totalsByCurrency: [{ currency: 'RUB', value: '21.1' }], totalsByCurrency: [{ currency: 'RUB', value: '21.1' }],
cashBalances: [{ currency: 'RUB', value: '1.1' }], cashBalances: [{ currency: 'RUB', value: '1.1' }],
structure: { currencies: [{ currency: 'RUB' }] }, structure: { currencies: [{ currency: 'RUB' }] },
unrealizedReturnByCurrency: [], unrealizedReturnByCurrency: [
{ currency: 'RUB', absolute: '0', costBasis: '0', percent: null, partial: true },
],
stockPositionCount: 1, stockPositionCount: 1,
bondPositionCount: 0, bondPositionCount: 0,
fundPositionCount: 0, fundPositionCount: 0,