From be18ecb03ac9d97102816c10ef7b26163ded67f6 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 3 Aug 2026 20:38:18 +0200 Subject: [PATCH] Add invalid-platform.json --- test/import/not-ok/invalid-platform.json | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 test/import/not-ok/invalid-platform.json diff --git a/test/import/not-ok/invalid-platform.json b/test/import/not-ok/invalid-platform.json new file mode 100644 index 0000000000..69a8e29caf --- /dev/null +++ b/test/import/not-ok/invalid-platform.json @@ -0,0 +1,42 @@ +{ + "meta": { + "date": "2023-02-05T00:00:00.000Z", + "version": "dev" + }, + "accounts": [ + { + "balance": 0, + "balances": [], + "currency": "USD", + "id": "e62be662-a2c8-4cff-8b79-dc0a46576659", + "name": "Lehman Brothers Account", + "platformId": "2807e8e7-3966-4ced-8d82-0fa2d9c97277" + } + ], + "platforms": [ + { + "id": "2807e8e7-3966-4ced-8d82-0fa2d9c97277", + "name": "Lehman Brothers", + "url": "https://lehmanbrothers.com" + } + ], + "activities": [ + { + "accountId": "e62be662-a2c8-4cff-8b79-dc0a46576659", + "fee": 19, + "quantity": 5, + "type": "BUY", + "unitPrice": 298.58, + "currency": "USD", + "dataSource": "YAHOO", + "date": "2021-09-16T00:00:00.000Z", + "symbol": "MSFT" + } + ], + "user": { + "settings": { + "currency": "USD", + "performanceCalculationType": "ROAI" + } + } +}