Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/extend test files by various attributes (#5377)

Thomas Kaul475bebec2e84
diff --git a/test/import/ok/500-activities.json b/test/import/ok/500-activities.json
index f2aeab113a..b691a6f9f9 100644
--- a/test/import/ok/500-activities.json
+++ b/test/import/ok/500-activities.json
@@ -13,6 +13,8 @@
"platformId": null
}
],
+ "platforms": [],
+ "tags": [],
"activities": [
{
"accountId": "b2d3fe1d-d6a8-41a3-be39-07ef5e9480f0",
@@ -6014,5 +6016,10 @@
"date": "2022-05-06T03:16:21.371059Z",
"symbol": "AAPL"
}
- ]
+ ],
+ "user": {
+ "settings": {
+ "currency": "USD"
+ }
+ }
}
diff --git a/test/import/ok/derived-currency.json b/test/import/ok/derived-currency.json
index fe5554beb0..e740c1ae30 100644
--- a/test/import/ok/derived-currency.json
+++ b/test/import/ok/derived-currency.json
@@ -13,6 +13,8 @@
"platformId": null
}
],
+ "platforms": [],
+ "tags": [],
"activities": [
{
"accountId": "b2d3fe1d-d6a8-41a3-be39-07ef5e9480f0",
@@ -26,5 +28,10 @@
"date": "2024-06-28T00:00:00.000Z",
"symbol": "JSE.JO"
}
- ]
+ ],
+ "user": {
+ "settings": {
+ "currency": "USD"
+ }
+ }
}
diff --git a/test/import/ok/sample.json b/test/import/ok/sample.json
index 4ebb323ded..21277129f8 100644
--- a/test/import/ok/sample.json
+++ b/test/import/ok/sample.json
@@ -21,7 +21,7 @@
"id": "b2d3fe1d-d6a8-41a3-be39-07ef5e9480f0",
"isExcluded": false,
"name": "My Online Trading Account",
- "platformId": null
+ "platformId": "9da3a8a7-4795-43e3-a6db-ccb914189737"
}
],
"assetProfiles": [
@@ -70,7 +70,13 @@
"url": null
}
],
- "platforms": [],
+ "platforms": [
+ {
+ "id": "9da3a8a7-4795-43e3-a6db-ccb914189737",
+ "name": "Interactive Brokers",
+ "url": "https://interactivebrokers.com"
+ }
+ ],
"tags": [],
"activities": [
{
diff --git a/test/import/ok/vti-buy-long-history.json b/test/import/ok/vti-buy-long-history.json
index 1586cff7b6..c8cd25e600 100644
--- a/test/import/ok/vti-buy-long-history.json
+++ b/test/import/ok/vti-buy-long-history.json
@@ -3,6 +3,9 @@
"date": "2023-04-29T00:00:00.000Z",
"version": "dev"
},
+ "accounts": [],
+ "platforms": [],
+ "tags": [],
"activities": [
{
"fee": 0,
@@ -34,5 +37,10 @@
"date": "2010-01-04T00:00:00.000Z",
"symbol": "VTI"
}
- ]
+ ],
+ "user": {
+ "settings": {
+ "currency": "USD"
+ }
+ }
}
diff --git a/test/import/ok/without-accounts.json b/test/import/ok/without-accounts.json
index 3a53207410..8a24f86fc0 100644
--- a/test/import/ok/without-accounts.json
+++ b/test/import/ok/without-accounts.json
@@ -44,5 +44,10 @@
"date": "2021-09-16T00:00:00.000Z",
"symbol": "MSFT"
}
- ]
+ ],
+ "user": {
+ "settings": {
+ "currency": "USD"
+ }
+ }
}