Skip to content

Commit

Permalink
Corrected tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bm64 committed Dec 11, 2024
1 parent dc85294 commit 76a09d9
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions tests/SecurityDetails/SecurityDetailsConnector.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
);
}
Expand All @@ -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.'
);
}
Expand All @@ -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.'
);
}

0 comments on commit 76a09d9

Please sign in to comment.