From 06bce556a28b4b4550acf4f8bfe23b441692ea53 Mon Sep 17 00:00:00 2001 From: Dick Wolff Date: Mon, 20 Jan 2025 13:38:52 +0100 Subject: [PATCH] Add more test cases --- samples/xtb-export.csv | 4 +++- src/converters/xtbConverter.test.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/samples/xtb-export.csv b/samples/xtb-export.csv index c8b96cc3..57d306a3 100644 --- a/samples/xtb-export.csv +++ b/samples/xtb-export.csv @@ -9,6 +9,7 @@ ID;Type;Time;Symbol;Comment;Amount 524522819;Stocks/ETF purchase;02.04.2024 14:21:03;SPYL.DE;OPEN BUY 35 @ 11.7405;-410.92 524303821;Stocks/ETF sale;02.04.2024 11:42:37;ZAL.DE;CLOSE BUY 1 @ 26.280;26.28 524223272;Stocks/ETF purchase;02.04.2024 10:21:47;ZAL.DE;OPEN BUY 1 @ 26.400;-26.4 +579214169;Dividend;12.07.2024 11:00:27;SPYL.DE;SPYL.DE USD 0.6600/ SHR;1.21 521693016;Deposit;27.03.2024 09:00:21;;JP_MORGAN deposit, JP_MORGAN provider transaction id=TXN-C-4245251-99568, JP_MORGAN merchant reference id=TXN-C-4245251-99568, id=10821051;1400 516595080;Stocks/ETF purchase;15.03.2024 15:54:27;SPYL.DE;OPEN BUY 26 @ 11.3400;-294.84 516573845;Stocks/ETF purchase;15.03.2024 15:37:59;SPYL.DE;OPEN BUY 26 @ 11.3500;-295.1 @@ -38,4 +39,5 @@ ID;Type;Time;Symbol;Comment;Amount 547615041;Stocks/ETF purchase;14.05.2024 17:21:09;FLOA.UK;OPEN BUY 0.7399/16.7399 @ 5.9140;-4.38 543857396;Free funds interests tax;07.05.2024 09:36:50;;Free-funds Interest Tax 2024-04;-2 543604525;Free funds interests;07.05.2024 03:16:39;;Free-funds Interest 2024-04;15.17 -597124174;Free funds interests;09.08.2024 19:38:51;;Corr Free-funds Interest 2024-07;0.5 \ No newline at end of file +597124174;Free funds interests;09.08.2024 19:38:51;;Corr Free-funds Interest 2024-07;0.5 +244234503;Spin off;13.04.2022 14:50:01;T.US;T.US USD 5.8970/ SHR;21.68 \ No newline at end of file diff --git a/src/converters/xtbConverter.test.ts b/src/converters/xtbConverter.test.ts index eeddb0a2..04c08507 100644 --- a/src/converters/xtbConverter.test.ts +++ b/src/converters/xtbConverter.test.ts @@ -34,7 +34,7 @@ describe("xtbConverter", () => { // Assert expect(actualExport).toBeTruthy(); expect(actualExport.activities.length).toBeGreaterThan(0); - expect(actualExport.activities.length).toBe(29); + expect(actualExport.activities.length).toBe(31); done(); }, () => { done.fail("Should not have an error!"); });