From ed30e35ccb07533bcb8a67ffcfc9d7257db8b6ee Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Mon, 7 Aug 2023 20:33:50 +0200 Subject: [PATCH] Extend import test files --- test/import/invalid-currency.csv | 2 +- test/import/unavailable-exchange-rate.json | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 test/import/unavailable-exchange-rate.json diff --git a/test/import/invalid-currency.csv b/test/import/invalid-currency.csv index e04db317b..d33f6187b 100644 --- a/test/import/invalid-currency.csv +++ b/test/import/invalid-currency.csv @@ -1,2 +1,2 @@ Date,Code,Currency,Price,Quantity,Action,Fee -12/12/2021,BTC,EUR,44558.42,1,buy,0 +12/12/2021,BTC,XYZ,44558.42,1,buy,0 diff --git a/test/import/unavailable-exchange-rate.json b/test/import/unavailable-exchange-rate.json new file mode 100644 index 000000000..2d21a76c3 --- /dev/null +++ b/test/import/unavailable-exchange-rate.json @@ -0,0 +1,19 @@ +{ + "meta": { + "date": "2023-02-05T00:00:00.000Z", + "version": "dev" + }, + "activities": [ + { + "comment": null, + "fee": 0, + "quantity": 0, + "type": "BUY", + "unitPrice": 0, + "currency": "EUR", + "dataSource": "YAHOO", + "date": "1990-01-01T22:00:00.000Z", + "symbol": "MSFT" + } + ] +}