From 76a09d99ae63dcc97fcb554eb4eb7c7b25b97843 Mon Sep 17 00:00:00 2001 From: Mateusz Bernacik Date: Wed, 11 Dec 2024 10:59:20 +0100 Subject: [PATCH] Corrected tests. --- .../SecurityDetailsConnector.test.ts | 30 ++++--------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/tests/SecurityDetails/SecurityDetailsConnector.test.ts b/tests/SecurityDetails/SecurityDetailsConnector.test.ts index 17b168a..0070972 100644 --- a/tests/SecurityDetails/SecurityDetailsConnector.test.ts +++ b/tests/SecurityDetails/SecurityDetailsConnector.test.ts @@ -95,13 +95,8 @@ export async function regionalExposureLoad ( await connector.load(); Assert.deepStrictEqual( - connector.table.getColumnNames(), - [ - 'RegionalExposure_Type', - 'RegionalExposure_L_0.64368', - 'RegionalExposure_S_100', - 'RegionalExposure_N_0.64368' - ], + connector.table.getColumnNames()[0], + 'RegionalExposure_Type', 'Regional exposure table should exist of expected columns.' ); } @@ -123,13 +118,8 @@ export async function globalStockSectorBreakdownLoad ( await connector.load(); Assert.deepStrictEqual( - connector.table.getColumnNames(), - [ - 'GlobalStockSectorBreakdown_Type', - 'GlobalStockSectorBreakdown_L_0.64369', - 'GlobalStockSectorBreakdown_S_100', - 'GlobalStockSectorBreakdown_N_0.64369' - ], + connector.table.getColumnNames()[0], + 'GlobalStockSectorBreakdown_Type', 'Global stock sector breakdown table should exist of expected columns.' ); } @@ -151,16 +141,8 @@ export async function countryExposureLoad ( await connector.load(); Assert.deepStrictEqual( - connector.table.getColumnNames(), - [ - 'CountryExposure_Type', - 'CountryExposure_Bond_L_99.98311', - 'CountryExposure_Bond_S_100', - 'CountryExposure_Bond_N_99.98311', - 'CountryExposure_Equity_L_0.64368', - 'CountryExposure_Equity_S_100', - 'CountryExposure_Equity_N_0.64368' - ], + connector.table.getColumnNames()[0], + 'CountryExposure_Type', 'Country exposure table should exist of expected columns.' ); }